通过审核的文章数量要怎么统计 迅睿框架 更新 2021-03-01 16:20:09 七柒 {member order=? num=10}发布总数:{count action=module module=news uid=$t.id}过审总数:?{/member}您好,有2个问题请教。1、如何按照发布总数从多到少排序,order=要怎么写?2、通过审核的文章数量要怎么统计?
<?php $sql = urlencode('SELECT COUNT(*) as ct,uid FROM `dr_1_news_index` GROUP by uid ORDER BY `ct` DESC limit 20');?> {sql sql='$sql'} {php $m=dr_member_info($t.uid);} 用户{$m.username}发不了{$t.ct}篇 {/sql}