帝国CMS教程
帝国CMS模板网>帝国CMS教程

帝国cms模板里调用前台会员名及投稿数量排名的代码

来源:帝国CMS模板网 作者:帝国CMS教程 时间:2015-12-17
浏览:3.3千+ 收藏 点赞(6)

以下是调用代码:会员投稿新闻数据表的排行榜

<table>
[e:loop={'SELECT userid, username, COUNT( userid ) AS total FROM phome_ecms_news GROUP BY userid',10,24,0,'','total DESC'}]
<tr>
<td><?=$bqno?></td>
<td><?=$bqr[username]?></td>
<td><?=$bqr[total]?></td>
</tr>
[/e:loop]
</table>
帝国CMS模板