Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $db = new PDO('mysql:host=localhost;dbname=iniection', 'root', '');
- $stmt = $db->prepare("SELECT * FROM user WHERE username=? AND password=?");
- $stmt->execute(array($_POST['username'], $_POST['password']));
Add Comment
Please, Sign In to add comment