Guest User

Untitled

a guest
Dec 25th, 2015
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. <?php
  2.  
  3. require 'db.inc.php';
  4. $query = $conn->prepare("SELECT * FROM test WHERE test_name LIKE ?");
  5. $query->execute(array($variable));
  6.  
  7.  
  8. while ($results = $query->fetch())
  9. {
  10. //gør noget ved resultat
  11. }
  12.  
  13. }
  14. }
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment