Forum Moderators: coopster
<?
$user="root";
$host="localhost";
$pass="";
$dbname="TTCID";
$db=@mysql_pconnect($host,$user,$pass) or
die("Could not connectd to server");
mysql_select_db($dbname,$db) or
die('Could not select DB!');
$sql = "SELECT Photo FROM image WHERE custid='$id'";
if(!($result=@mysql_query($sql))) showerror;
$data=@mysql_fetch_array($result);
if (!empty($data['Photo']))
{
header("Content-Type: image/jpg");
print $data['Photo'];
print $data['Signature'];
}
?>
The problem is :
1) i cannt print both image....
2) smtime it opensa dialog box to save the file.
3) and how to change header("Content-Type: image/jpg") bcause i want to add html code in the same page.
Please help me out....
Perhaps this thread on How to convert image blob files back to image [webmasterworld.com] will offer insight.