Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $query = 'SELECT * FROM offers WHERE `loc` = ?';
- $stmt = mysqli_stmt_init($con);
- $stmt->prepare($query);
- $toBind1 = $_GET['loc'];
- $stmt->bind_param('s', $toBind1);
- $stmt->execute();
- $result=$stmt->get_result();
- while ($row = $result->fetch_assoc()) { }
Advertisement
Add Comment
Please, Sign In to add comment