PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
$result = mysql_query("SELECT * FROM accounts WHERE email = $email");
if (mysql_num_rows($result) == 0) {
}
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
$query="SELECT * FROM accounts WHERE email = '$email'";
$result = mysql_query($query) or die (mysql_error()."- $query");
if (mysql_num_rows($result) == 0) {
}