Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /www/wwwroot/xdai//common/CommonAction.class.php on line 27
这是27行的代码
$i=0;
//echo $sql;
27 $nums = mysql_num_rows($result);
while ($i < $nums) {
$rows[] = mysql_fetch_array($result);
$i++; }
return $rows;
}
这报错怎么处理?各位