Advertisement
rawyon

Untitled

May 4th, 2011
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. <?php
  2.  
  3. $id = $_REQUEST('id');
  4.  
  5. $stmt = $dbh->prepare("SELECT * FROM store WHERE id = $id");
  6.  
  7. $image = $stmt->fetch(PDO::FETCH_ASSOC);
  8. $image =($stmt->bindParam('id', $id);
  9.          $stmt->execute();)
  10.  
  11.  
  12. $image = $image['image'];
  13.  
  14. echo $image;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement