Possible Duplicate:
mysql_fetch_array() expects parameter 1 to be resource, boolean given in select
I have a problem with my login form. I made a site and I run that site on xampp localhost. It usually works fine, but when I transferred files to web hosting, my login form showed this error:
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given
... on line 39
My code in this line is:
$login_check = mysql_num_rows($sql);
// If login check number is greater than 0 (meaning they do exist and are activated)
if($login_check > 0){
while($row = mysql_fetch_array($sql)){
Can someone please help me?