<?php
mysql_connect("localhost","root","") or die(mysql_error());
mysql_select_db("mydatabase") or die(mysql_error());

$id = addslashes($_REQUEST['id']);

$image = mysql_query("SELECT * FROM store where nameID=\"".addslashes($id)."\"");
$image = mysql_fetch_assoc($image);
$image = $image['image'];
//echo "<script>alert('".$image."');</script>";
header("Content-type: image/jpeg");

echo $image;




?>

