SHARE
TWEET

Untitled

a guest Jun 15th, 2017 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. mysql_connect(mysql-info);
  3. mysql_select_db(mysql-db);
  4.  
  5. $username = $_POST['username'];
  6. $password = $_POST['password'];
  7.  
  8. mysql_real_escape_string('$username');
  9. mysql_real_escape_string('$password');
  10.  
  11.  
  12. $query = mysql_query("SELECT * FROM adminusrs WHERE username = '$username' AND password = '$password'");
  13.  
  14. $rows = mysql_num_rows($query);
  15.  
  16. if ($rows == 1)
  17. {
  18.  
  19. echo "Successfully logged in!";
  20.  
  21. }
  22. else
  23.     echo "Invalid username and password!";
  24.  
  25. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top