retrieving images

From: Date: Sat, 31 Mar 2001 16:07:49 +0000
Subject: retrieving images
Groups: php.db 
Request: Send a blank email to php-db+get-8066@lists.php.net to get a copy of this message
Hello, I'm trying to retrieve and output all the binary images in my images table. This is what I have, $result = mysql_query("SELECT * FROM images",$db); if ($myrow = mysql_fetch_array($result)) { // display list if there are records to display do { $filetype = ($myrow["filetype"]); header("Content-type: $filetype"); echo $myrow["binary_junk"]."<br>\n"; } while ($myrow = mysql_fetch_array($result)); } else { // no records to display echo "Sorry, no records were found!"; When I run this, it only returns the first image in the table. Have really know idea where to go from here. Is one image all that can be done? Thanks for the help, Mike

« previous php.db (#8066) next »