Code: Select all
<?
header("Content-type: image/jpeg");
mysql_connect("localhost","root","xxxxx");
mysql_select_db("test");
$mysql ="SELECT imgdata".
"FROM pix ".
"WHERE pid = 14 ";
if ($row = mysql_fetch_assoc($mysql)) {
$bytes = $row[imgdata];}
print $bytes;
?>It makes the page: title index.php (JPEG image)
Can anyone explain what is going on?