警告: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贡献1796条经验 获得超10个赞
$result2 = mysql_query($myQuery) or die($myQuery."<br/><br/>".mysql_error());
回首忆惘然
TA贡献1847条经验 获得超11个赞
mysql_fetch_array()
false
mysql_fetch_array()
false
白板的微信
TA贡献1883条经验 获得超3个赞
mysql_fetch_array()
please select all privileges on your server
添加回答
举报
0/150
提交
取消