mysql SELECT and mysql_num_rows issue
Posted: Wed Jun 09, 2010 6:37 am
I want to be able to check how many rows exists from
but I get the error Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/content/s/l/i/********/html/***/register.php on line 17
Code: Select all
$result = mysql_query("SELECT * FROM accounts WHERE email = $email");
if (mysql_num_rows($result) == 0) {
}