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

Reply via email to