I keep getting an invalid argument error from my webserver when it tries to parse the:
mysql_num_rows($result);
Here is the block of code that it is contained in:
$query = "SELECT * FROM emplyee WHERE user_id = '$u' and pass = '$p'";
$result = mysql_query($query, $db);
if (mysql_num_rows($result) > 0 ){
echo'You have logged in successfully';
}
I am thinking that it may have something to do with the query but I don't know.
Thanks for the help