I am using php script to make login page. I use mysql_num_rows() method,
it returns 1 if it matches first row only, it returns 0 when second or third row matches.
Here is My code:
$username = $_POST['username'];
$password = $_POST['password'];
$sql = "SELECT id,username,password FROM user_data WHERE username = '$username' and password = '$password'";
$result = mysqli_query($sql);
$count = mysqli_num_rows($result);
Here I also tried mysqli method too, but result are same.
Please Help