Guest User

Untitled

a guest
Jan 2nd, 2017
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  1. $db = new PDO('mysql:host=localhost;dbname=iniection', 'root', '');
  2.  
  3. $stmt = $db->prepare("SELECT * FROM user WHERE username=? AND password=?");
  4. $stmt->execute(array($_POST['username'], $_POST['password']));
Add Comment
Please, Sign In to add comment