July 10th, 2000, 08:02 PM
I am trying to display multiple pictures/text/other html content onto a page. I am pulling the picture binary data right out of a MySQL database and slamming it to the user. I can get 1 picture to display but that is it. I have code if you want see it, but I don't think it will help in this situation. The headers info I have tried to send it either.
Header ("Content-type: image/gif"); AND
Header ("Content-type: text/html");
Please help. I am loooooooosing my mind!
July 10th, 2000, 09:34 PM
I know you can only send Header once on a page. You should try including an external file that has a function that prints the image data out in it and then includes it your page, so you are only using one Header per image that you want to use
July 10th, 2000, 09:39 PM
So you are saying that I should use a
to do all of my processing...and then slam it out to the page? I think I have tried that , but I will give it a shot...Anybody else any any ideas?
July 11th, 2000, 07:15 PM
If anyone cares this is how I finally got it to work. It may not be that pretty, but it worked.
display.php just pulls the picture out of the database and slams it to the browser per the ID you give it.
mysql_connect("localhost", "root", "letmein");
$query = "Select picdata from pictures where(ID=" . $ID . ")";
To call a picture up you could reference in any HTML docuemnt this line
or the ID of the picture binary data you want to slam to the browser.
Full code is avalible for any of my php projects at http://www.geekgetsthegirl.com/projects