I have a getimage.php containing
<?php
$id = $_GET['id'];
// do some validation here to ensure id is safe
$link = mysql_connect("localhost", "user", "password");
mysql_select_db("database");
$sql = "SELECT photo FROM property_photo WHERE id=$id";
$result = mysql_query("$sql");
$row = mysql_fetch_assoc($result);
mysql_close($link);
header("Content-type: image/jpeg");
echo $row['property_photo'];
?>
and my index.php
<div class="bloco"> <img src="getImage.php?id=1" ?>
<div>Description</div>
</div>
<div class="insert"></div>
</div>
i can't see the photo, It won't display or it displays as a blank box with a blue question mark.