Hi Folks:
Database: databaseimage
Table: store
Fields: Three(id, name and image)...Image as blob.
The following php script works as far as loading and showing one image at a time.
Can anyone show me how to display all images in the table? The script as it is written
loads and displays image 4.
<?php
$num=3;
header("Content-type: image/jpeg");
$conn=mysql_connect("localhost","root","");
mysql_select_db("databaseimage") or die(mysql_error());
$sql="SELECT image FROM store";
$result=mysql_query($sql) or die("Invalid Query:" . mysql_error());
while($row=@mysql_result($result, $num ,'image')) {
echo $row;
exit;
}
mysql_close($conn);
?>

