Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //if input != with $password in database, output wrong password
- $sql="SELECT `key` FROM `invitation_keys` WHERE id = '$password'";
- $res=mysqli_query($db,$sql);
- if (mysqli_num_rows($res) = 0) {
- echo "Wrong password";
- } else {
- echo "alright";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement