I keep getting the error "mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/weloveco/public_html/checklogin.php on line 25
Wrong password or Username"
<?php
ob_start();
include 'my_sql_connection.php';
$sql="SELECT * FROM weloveco_blink WHERE user_email = '$useremail' and user_password='$userpassword'";
$result=mysql_query($sql);
$count=mysql_num_rows($result);
// If result matched $myusername and $mypassword, table row must be 1 row
if($count==1)
{
header ("Location: login_success.php");
}
else {
echo "Wrong password or Username";
}
ob_end_flush();
?>
</html>