Images not showing up from database

Here’s my problem. I want to display an image from a database using the file path (I.E.: images/image.jpg for instance). I can’t get this to display, I only get the “images/image.jpg” to display on my page. What do I need to get the image to show up? In the database, I have it set up as a varchar(255), if this matters.

Thanks for any help!

PhpRocksMan!

I’m going to assume you have a query that’s getting the image path and filename from a database successfully, images/image.jpg is a valid file and path, and that all you’re missing is adding an tag to the output:

[php]

$image = $result[‘image’];
echo ‘<img src="’ . $image . ‘" alt="’ title="" />’;[/php]

No?

I feel dumb, but I’m not sure what to do with this? Do I edit this portion?

Thanks!

what code do you have at the moment?

Yea, I got the images to show up. I was having a pathname problem (wrong name).

Thanx!

Sponsor our Newsletter | Privacy Policy | Terms of Service