帝国CMS调用最新300条中点击率最高的2条

可以实现,调用最新300条信息中点中率最高的2条信息,而不是所有信息。

[e:loop={'select * from (select a.id,a.title,a.newspath,a.newstime,b.classpath,b.classname,b.filetype,a.onclick,a.smalltext from '.$dbtbpre.'ecms_article as a,'.$dbtbpre.'enewsclass b where a.classid=b.classid and a.checked=1 order by a.newstime desc limit 200) as new300 order by  new300.onclick desc limit 2',1,24,0}]
  • ” target=”_blank” title=””>

    ……

[/e:loop]

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注