minicl55

Untitled

Oct 15th, 2014
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. $query = 'SELECT * FROM offers WHERE `loc` = ?';
  2. $stmt = mysqli_stmt_init($con);
  3. $stmt->prepare($query);
  4. $toBind1 = $_GET['loc'];
  5. $stmt->bind_param('s', $toBind1);
  6. $stmt->execute();
  7. $result=$stmt->get_result();
  8. while ($row = $result->fetch_assoc()) { }
Advertisement
Add Comment
Please, Sign In to add comment