Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- mysql_connect("localhost","root","") or die(mysql_error());
- mysql_select_db("databaseimage") or die(mysql_error());
- $id = addslashes($_REQUEST['id']);
- $image = mysql_query("SELECT * FROM store WHERE id=$id");
- $image = mysql_fetch_assoc($image);
- $image = $image['image'];
- header("Content-type: image/jpeg");
- echo $image;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement