<?php
header("content-type: image/jpeg");
mysql_connect ("localhost","","") or die ("Could not connect");
$query = "select * from pictures";
$result = mysql_db_query ("phptest",$query) or die ("Query failed");
$row=mysql_fetch_array($result);
echo $row[2]; #the colomn with a (blob)picture
?>
#problems:
#1.
how to embed in HTML -- <BODY> ..phpcode.. </BODY>
when i do this i get error:
"Warning: Cannot add header information - headers already sent
by (output started at C:\httpd\HtDocs/test.php:3) in C:\httpd\HtDocs/test.php on line 4
#2.
#how to show text -- the phpcode on top works.
#Adding a line like {echo "hello";} doesn't work.
#WHY?????????????????????????????????
#Thanks in advance
#Dick Holtman