Advertisement
Guest User

Untitled

a guest
Sep 27th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. <?php
  2.  
  3. include('config.php');
  4.  
  5. $user = protect($_GET['username']);
  6. $pass = protect($_GET['password']);
  7.  
  8. $res = mysql_query("SELECT `id` FROM `users` WHERE (`username` = '{$user}' AND `password` = '{$pass}')");
  9.  
  10. if (mysql_num_rows($res) == 1) {
  11.     echo "You logged in!";
  12. } else {
  13.     echo "Sorry, but there are no records of that username and password combination.";
  14. }
  15.  
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement