Hi Guys
I have a table named "pictures" with fields.. "id", "account_number","picture"
i can store photos in this database without any problems but im having problems retreiving the information with the following snippet, it only displays the binary data & not the photo.
if anyone could help it would be appreciated.
Thanx everyone
<?
require('config.php');
mysql_connect($dhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="SELECT * FROM pictures WHERE account_number = 62";
$result=mysql_query($query);
$picture = mysql_fetch_array($result);
echo $picture['picture'];
$num=mysql_numrows($result);
mysql_close();
?>