Slide 21
Slide 21 text
Prevention
prepare(‘select id from users’
.’ where username = :user’
.’ and password = :pass’);
$stmt->execute(array(
‘user’ => $_POST[‘username’],
‘pass’ => $_POST[‘password’]
));
$results = $stmt->fetchAll(PDO::FETCH_ASSOC);
?>
/PUF5IJTFYBNQMFSFRVJSFT1%0TVQQPSU