Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $sth = $dbh->prepare("SELECT * FROM users WHERE user=:login AND pass=:haslo");
- $sth->bindParam(':login', $_POST['login']);
- $sth->bindParam(':haslo', $_POST['haslo']);
- $sth->execute();
- $data = $sth->fetchAll();
- $sth->closeCursor();
- $sth = null;
- foreach($data as $result){
- echo $result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement