...array() expects parameter 1 to be resource, boolean given in...
发布网友
发布时间:2024-10-24 16:58
我来回答
共2个回答
热心网友
时间:17小时前
表里没有数据了,
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /opt/lampp/htdocs/test.php on line 23
那句查询有问题,如果没有数据了就会出错
热心网友
时间:17小时前
好像是sql语句错了
select * from ad_constitution as A inner join ad_constitution1 as B on A.school_code=B.school_code_id ORDER BY id DESC LIMIT 18
中的ORDER BY id 是谁的id ,是A的还是B的 ,应该是 A.id 或 B.id 。
例如sql语句是: "select * from ad_constitution as A inner join ad_constitution1 as B on A.school_code=B.school_code_id ORDER BY A.id DESC LIMIT 18 " 。