出于某种原因,我无法理解我在使用 mysql_num_rows 时遇到了麻烦。
继承人的脚本:
$notquery = 'SELECT * FROM notification WHERE uid = 1 AND read = 0
AND tipo = post
OR tipo = subpost OR tipo = logros';
$notQuery = (mysql_query($notquery));
$num_rows = mysql_num_rows($notQuery);
错误:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource