Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. //if input != with $password in database, output wrong password
  2. $sql="SELECT `key` FROM `invitation_keys` WHERE id = '$password'";
  3. $res=mysqli_query($db,$sql);
  4. if (mysqli_num_rows($res) = 0) {
  5.  
  6. echo "Wrong password";
  7.  
  8. } else {
  9. echo "alright";
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement