Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (isset($_POST['loggin'])) {
- $realname=$_POST['realname'];
- $password=md5($_POST['password']);
- if ($realname && $password) {
- $usersor=$db->prepare("SELECT * from authme where realname=:realname and password=:password");
- $usersor->execute(array(
- 'realname' => $realname,
- 'password' => $password
- ));
- $say=$usersor->rowCount();
- if ($say>0) {
- $_SESSION['realname'] = $realname;
- header('Location:../profil?status=ok');
- } else {
- header('Location:../profil?status=no');
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement