Hello all,
I am having a problem of displaying all the images in one page although they exist on the database table. Only the first image is showing up....
this is the code i am using to display them....
$sql = "SELECT * FROM image";
$result = mysql_query ($sql, $conn);
if (mysql_num_rows ($result) > 0) {
$row = @mysql_fetch_array ($result);
$image_type = $row["image_type"];
$image = $row["image"];
Header ("Content-type: $image_type");
print $image;
}
I have also tried with the while loop but only the first one shows up....
any idea why?
thanks