I'm trying to display in a web page all the images stored in a database. THis is my code, but it only displays the first picture:
<?php
include "cysylltiad.php";
$result = mysql_query("SELECT * FROM files ORDER BY fid");
while($row = mysql_fetch_array($result)){
header("Content-Type: {$row['type']}");
echo $row["content"];
}
?>
where content is the name of the picture field.
Any help would be appreciated.