function returnnotify(){
$result = mysql_query("SELECT * FROM rentcustomer WHERE Expiredtime = CURDATE()");
$count = mysql_num_rows($result);
if ($count >= 1){
echo $count;
}else{
echo "0";
}
}
now when I run the code above ,it will prompt out this error:
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\include\functions.php on line 6
Can I know where's the error?
The query work fine in phpmyadmin, it can search the result that I expected.