I use the folowing code to display a picture stored in a database in a long blob field:
<?php
$x=mysql_connect("localhost","root","");
mysql_select_db ("pic");
$q = "select CODE,PICT from test where CODE = '001'";
$qexec = @mysql_query($q) or die("Couldn't get image.");
$img = @mysql_result($qexec,0,"PICT");
mysql_close($x);
echo $img;
?>
This code is work, but if I insert in the page another character or the line echo "a character"; the pictures will not be displayed corectly.
Thx in advance.

