Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "config.php";
- $username = htmlspecialchars(mysqli_real_escape_string($connection, $_GET['username']));
- $password = htmlspecialchars(mysqli_real_escape_string($connection, $_GET['password']));
- $query = "SELECT * FROM `users` WHERE username='$username' and password='$password'";
- $result = mysqli_query($connection, $query) or die(mysqli_error($connection));
- $count = mysqli_num_rows($result);
- if ($count == 1){
- echo "Login.Success";
- }else{
- echo "Login.Failed";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement