recently i wanted to retrieve image inside a table but the image doesnt appear at all, but when i run the code in another page without the table clause....it works! hurmm....how do i retrieve an image INSIDE <table></table> ???
below is my code of retrieving image...
Code: Select all
<?php
// Connects to your Database
mysql_connect("localhost", "username", "password") or die(mysql_error());
mysql_select_db("hospital") or die(mysql_error());
$rs = mysql_query("select * from pix where title='apple'");
$row = mysql_fetch_assoc($rs);
$imagebytes = $row[imgdata];
header("Content-type: image/jpeg");
print $imagebytes;
?>please please help me...
thanks
Azhan