Forum Moderators: coopster
I'm not able to display multiple images from blob.Why the problem occurs.I can able to display one image. by this code.Any solutions would be gr8.Here is my code.Please help
<?php
include "includes/dbconnection.php";
$result = mysql_query("select image from tbl_images");
while($result_data = mysql_fetch_array($result))
{
header("Content-type: image/jpg") ;
header("Content-type: image/gif") ;
print($result_data['image'])."<br>";
}
?>
If you want to list numerous images you need to write two scripts: one to loop through your images and create the HTML (<img> tags) and another that when called from an <img> tag will generate an image (like the first part of your script).