警告:MySQL_FETCH_Array()希望参数1是资源,布尔值在中给出。请帮帮忙我得到以下错误:警告:MySQL_FETCH_Array()期望参数1为资源,布尔值为.以下是我的疑问:$query = "SELECT ListNumber FROM residential"; $result1 = mysql_query($query);
if (mysql_num_rows($result1) >10){
$difference = mysql_num_rows($result1) - 10;
$myQuery = "SELECT * FROM `residential` ORDER BY `id` LIMIT 10,". $difference;
$result2 = mysql_query($myQuery); echo $result2;
$replace = str_replace(", "," | ", $result2);
while ($line = mysql_fetch_array($result2, MYSQL_BOTH))
3 回答
墨色风雨
TA贡献1853条经验 获得超6个赞
$result2 = mysql_query($myQuery) or die($myQuery."<br/><br/>".mysql_error());
繁星点点滴滴
TA贡献1803条经验 获得超3个赞
mysql_fetch_array()
false
mysql_fetch_array()
false
30秒到达战场
TA贡献1828条经验 获得超6个赞
mysql_fetch_array()
please select all privileges on your server
添加回答
举报
0/150
提交
取消