Advertisement
vanchelo

Bind param SQL

Dec 25th, 2012
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.16 KB | None | 0 0
  1. $id = $_GET['id'];  
  2. $statement = $connection->prepare( "SELECT * FROM tbl_members WHERE id = ?" );  
  3. $statement->bind_param( "i", $id );  
  4. $statement->execute();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement