帝国cms调用api接口(帝国cms数据库在哪)
SQL:
选择a.id,a.classid,a.title,a.titlepic,a.用户名,a.userid,a.applynum,a.onclick,a.titleurl,b.id,b.classid,计数(b.id ) fromphome_ecms_newsas a left join phone_enewsfava as b on a.id=b.id and a.classid=b.classid wherea.classid=1anda.ispic=1group by a.id order by count(b.id) DESC limit 5
信息表、列ID等条件可以根据自己的需要进行调整!