Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $username = "user";
- $password = md5("pass");
- $query = "SELECT * FROM Users WHERE Username='$username' and Password='$password'";
- $result = mysqli_query($db, $query) or die(mysql_error());
- $rows = mysqli_num_rows($result);
- echo($result);
- if ($rows==1) {
- echo ("Sucessfully logged in");
- }
- else
- {
- echo ("ERROR: Username and password are incorrect");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement