I have written the following code to retrieve image from mysql database:
<?php
include('dbinfo.inc.php');
include('../functions.php');
mysql_connect("localhost","username","password")
or die("Failure to communicate");
mysql_select_db("db")
or die("Could not connect to Database");
$query = "SELECT content,size,type FROM upload WHERE id=1;";
$result=mysql_query($query);
mysql_close();
$content=mysql_result($result,0,"content");
$size=mysql_result($result,0,"size");
$type=mysql_result($result,0,"type");
header('Content-Type: '.$type);
print $content;
?>
It is working.. Now I would like to retrieve multiple images at a time..
what shall I do?
please help.. its urgent