image doesnt appear within <table></table> ?
Posted: Mon Apr 20, 2009 9:44 pm
hey guys,
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...
this code works perfectly...but it doesnt have table....could anyone suggest how to include this INSIDE a table...i've tried echo "<table>"..but still doesnt work....
please please help me...
thanks
Azhan
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