mrjameer
01-03-2007, 06:09 PM
hi,
i want to retrieve all images which are present in mysql table.i want to display 5 images per row.but when i fetch image it shows one image only.here is my code.how to solve this problem.any of your help will be appreciated
<?php
$conn4=mysql_connect("localhost","","");
mysql_select_db("jo",$conn4);
$sql = "SELECT name, type, size, content FROM image_upload";
$result = mysql_query($sql,$conn4) or die(mysql_error());
list($name, $type, $size, $content) = mysql_fetch_array($result);
header("Content-Disposition: attachment; filename=$name");
header("Content-length: $size");
header("Content-type: $type");
echo $content;
?>
thanks
mrjameer
i want to retrieve all images which are present in mysql table.i want to display 5 images per row.but when i fetch image it shows one image only.here is my code.how to solve this problem.any of your help will be appreciated
<?php
$conn4=mysql_connect("localhost","","");
mysql_select_db("jo",$conn4);
$sql = "SELECT name, type, size, content FROM image_upload";
$result = mysql_query($sql,$conn4) or die(mysql_error());
list($name, $type, $size, $content) = mysql_fetch_array($result);
header("Content-Disposition: attachment; filename=$name");
header("Content-length: $size");
header("Content-type: $type");
echo $content;
?>
thanks
mrjameer