Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. <?php
  2. mysql_connect("localhost","root","") or die(mysql_error());
  3. mysql_select_db("databaseimage") or die(mysql_error());
  4. $id = addslashes($_REQUEST['id']);
  5. $image = mysql_query("SELECT * FROM store WHERE id=$id");
  6. $image = mysql_fetch_assoc($image);
  7. $image = $image['image'];
  8. header("Content-type: image/jpeg");
  9. echo $image;
  10. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement