displaying an image from mysql

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
MrLorne
Forum Newbie
Posts: 1
Joined: Tue Jan 19, 2010 5:43 pm

displaying an image from mysql

Post by MrLorne »

Hey everyone, I'm fairly new with PHP so I'm sorry if this seems a tad obvious.

I'm looking for a way to display an image from MYSQL.... here is what I've done


Image


I have a row for the image name and it goes in accordance with my other data. I have made sure the files are all in the right places and everything should be able to come up after I have coded my PHP


Image


Am I on the right track? any help would be greatly appreciated. :D
Please exclude the "$product['Thumb_Image']" as I know that totally doesn't belong there.
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: displaying an image from mysql

Post by McInfo »

There are some problems with the quotes. Read about strings.

Also, the HTML is invalid. A <tr> is missing and the <img> is not closed.

Edit: This post was recovered from search engine cache.
Last edited by McInfo on Thu Jun 17, 2010 4:37 pm, edited 1 time in total.
User avatar
akuji36
Forum Contributor
Posts: 190
Joined: Tue Oct 14, 2008 9:53 am
Location: Hartford, Connecticut

Re: displaying an image from mysql

Post by akuji36 »

Post Reply