mysql_nu_rows not working

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\login2\login.php on line 17

whts means this error plz help me

It means that the function expects one parameter and that parameter must be a query, not true/false boolean.

mysql_num_rows( mysql_query(something) )

Hi,

Some correction there. The parameter expected is not a query, but a resource instead. In this case, the resource is a group of result returned by the mysql_query(sql statement goes here).

Regards,
developer.dex2908

Sponsor our Newsletter | Privacy Policy | Terms of Service