Advertisement
Guest User

Untitled

a guest
Aug 10th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. $result = mysql_query("SELECT * FROM login WHERE username='$user' AND password='$pass'");
  2.  
  3. if(!$result)
  4. {
  5. echo "Error encountered running query.";
  6. }
  7.  
  8. if($result)
  9. {
  10. if(mysql_num_rows($result)==0)
  11. {
  12. echo "The information provided is incorrect.";
  13. }
  14. else
  15. {
  16. echo "You have successfully logged in.";
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement