Show images from mysql database

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
smartD
Forum Newbie
Posts: 1
Joined: Thu Jul 24, 2008 2:59 pm

Show images from mysql database

Post by smartD »

Please, I need help on how to display pictures in my website from mysql database using PHP
Dynamis
Forum Contributor
Posts: 122
Joined: Thu Jul 10, 2008 3:15 pm
Location: Indiana, US

Re: Show images from mysql database

Post by Dynamis »

Here is a basic example to get you started. All you really need to know is, pull the image data from the database, set the header type to the MIME type for that file, and then print/echo the content to the screen.
Post Reply