[求助][讨论]sql语句:估计是语法错误,问题出在哪?
php+mysql:我写的SQL语句提示:
Warning: mysql_fetch_array():
supplied argument is not a valid MySQL result resource in
F:\myweb\ym_dy.php on line 183
Warning: mysql_fetch_array():
supplied argument is not a valid MySQL result resource in
F:\myweb\ym_dy.php on line 202
分别是这两句:
$rs=mysql_query("select count(*) FROM dyxx WHERE flid1=jypx&flid2=jypx_yjzl");
$myrow = mysql_fetch_array($rs);
和
$rs=mysql_query("SELECT * FROM dyxx WHERE flid1=jypx&flid2=jypx_yjzl order by rq desc limit $offset,$pagesize");
if ($myrow = mysql_fetch_array($rs))
(这是做分页过程中的两句)
数据库中已成功插入数据,就是未能显示,估计是语法错误,
我是初学者请各位老师指点:问题出在哪?
谢谢大家!