总是出现mysql_fetch_array(): supplied argument is not a valid MySQL result resource
程序员文章站
2022-04-08 20:39:02
...
总是出现mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\的错误。请各位帮帮忙!
$sql = "select * from `topic` order by id limit $start, $each_page";
mysql_query("set names 'gbk'");
$result = mysql_query($sql);
while (@$row=mysql_fetch_array($result))
$sql = "select * from `topic` order by id limit $start, $each_page";
mysql_query("set names 'gbk'");
$result = mysql_query($sql);
while (@$row=mysql_fetch_array($result))
回复讨论(解决方案)
查询失败!
$sql = "select * from `topic` order by id limit $start, $each_page";
$start 和 $each_page 至少有一个不存在或值非法
直接输出你的sql
看看就知道了。
$result = mysql_query($sql) or die(mysql_error()); //这样报什么错了
检查下SQL语句
推荐阅读
-
mysql_fetch_row(): supplied argument is not a valid MySQL result resource,何人能解?该如何解决
-
为何总是Warning: mysql_fetch_object(): supplied argument is not a valid MySQL resul
-
mysql_fetch_array(): supplied argument is not a valid MySQL result resource,该如何处理
-
mysql_fetch_array(): supplied argument is not a valid MySQL result resource....
-
mysql_fetch_array(): supplied argument is not a valid MySQL result resource....
-
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result res,该怎么解决
-
php出现Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result解决办法
-
mysql_fetch_array(): supplied argument is not a valid MySQL result resource,该怎么解决
-
mysql_fetch_array(): supplied argument is not a valid MySQL result resource
-
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resour,该怎么解决