[code=php]
$sql_result=mys ql_query($query ) or die("Error in Checking User".mysql_err or());
echo $no=mysql_num_r ows($sql_result );
if($no<>1)
{
return(false);
}
else
{
return (true);
}
[/code]
In this code i have get this type of error:
[code=html]
Warning: mysql_num_rows( ): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs \my\test\query\ function.php on line 2
[/code]
Can any one guide me. How is error occured?
Thank you
$sql_result=mys ql_query($query ) or die("Error in Checking User".mysql_err or());
echo $no=mysql_num_r ows($sql_result );
if($no<>1)
{
return(false);
}
else
{
return (true);
}
[/code]
In this code i have get this type of error:
[code=html]
Warning: mysql_num_rows( ): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs \my\test\query\ function.php on line 2
[/code]
Can any one guide me. How is error occured?
Thank you
Comment