This is the php code retrieving the image saved in retAnStad.php:
Code: Select all
<?php
$username = "root";
$password = "********!";
$host = "localhost";
$database = "anml";
@mysql_connect($host, $username, $password) or die("Can not connect to database: ".mysql_error());
@mysql_select_db($database) or die("Can not select the database: ".mysql_error());
$query = mysql_query("SELECT image FROM tblretaildining WHERE retailDining_id='1'");
$row = mysql_fetch_array($query);
//$content = $row['image'];
header('Content-type: image/jpeg');
echo $row['image'];
?>
<img src="retAnStad.php" alt="An Stad Picture"/>
could anyone offer some advise as to where i might be going wrong... this has been bugging me for a week now!
thanks so much
dee