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

前端之家收集整理的这篇文章主要介绍了帝国cms模板里调用前台会员名及投稿数量排名的代码前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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

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

猜你在找的帝国CMS相关文章