Guest User

Untitled

a guest
Oct 17th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. if(isset($_POST['go']) && strlen($_POST['go']) > 0)
  2. {
  3. $check = query ("SELECT * FROM `accounts` WHERE (`username`,`password`) = ('$_POST[login]','md5($_POST[pass]') ");
  4. if(mysql_num_rows($check) > 0) {
  5. print "good password";
  6. }
  7. else{
  8. print "bad password";
  9. }
  10. }
Add Comment
Please, Sign In to add comment