Home > Backend Development > PHP Tutorial > 老是出现mysql_fetch_array(): supplied argument is not a valid MySQL result resource

老是出现mysql_fetch_array(): supplied argument is not a valid MySQL result resource

WBOY
Release: 2016-06-13 12:51:45
Original
1088 people have browsed it

总是出现mysql_fetch_array(): supplied argument is not a valid MySQL result resource
总是出现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";
$start 和 $each_page 至少有一个不存在或值非法
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template