Jump to content

error appearing ???


almightyegg

Recommended Posts

I have this IF ELSE statement but it comes up with:

 

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/koggdesi/public_html/welcome.php on line 21

You haven't activated your account yet! <---this is true so it is working but saying it has an error aswell  ???

 

$active = mysql_query("SELECT * FROM users WHERE email='$email' AND activated='1'");
$a = mysql_num_rows($active);
if($a == 0){
echo "You haven't activated your account yet!";
}else{
//random stuff
}

anyideas?

Link to comment
https://forums.phpfreaks.com/topic/37190-error-appearing/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.