Hi all could someone please help me out with this function please
I have no code before this at the top of my page.
function usedEmail($emailad)
{
$used = mysql_query("SELECT* FROM users WHERE email ='".$emailad."' ");
if (mysql_num_rows($used) ==0)
{
return false;
}
else
{
return true;
}
}
if (usedEmail($_POST['email']) == false)
{
header("Location: signUp.php?e=ue");
exit;
}
i get this error
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\signUpComplete.php on line 5
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\signUpComplete.php:5) in C:\xampp\htdocs\msnandonline\signUpComplete.php on line 16
if anyone could help id be very greatful !
thanks