迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
1835022288
028-61286886
模板标签里面
如何统计会员在某个表发布了多少条信息?
{module module=news catid=1 uid=$t.uid more=1 order=displayorder_desc,updatetime num=5}
uid会员在news表的catid总共发布了多少条信息?
{/module }
<?php $18html_com = \Phpcmf\Service::M()->db->table('1_news')->where('uid', $t.uid)->countAll(); echo $18html_com; ?>
<?php $www_18html_com = \Phpcmf\Service::M()->db->table('1_news')->where('uid', $t.uid)->countAll(); echo $www_18html_com; ?>
$www_18html_com = \Phpcmf\Service::M()->where("uid",$t.uid)->counts("1_news");
catid限最终栏目
{php echo\Phpcmf\Service::M()->db->table('1_news')->where('catid', $t.catid)->where('uid', $t.uid)->countAll();}
{php echo\Phpcmf\Service::M()->db->table('1_news')->where('catid', $t.catid)->where('uid', 1)->countAll();}
{php echo\Phpcmf\Service::M()->db->table('1_xiutu')->where('uid', $member.uid)->countAll();}
{php echo\Phpcmf\Service::M()->db->table('1_xiutu')->where('uid', $member.uid)->countAllResults();}
countAllResults
{module module=news catid=1 uid=$t.uid more=1 order=displayorder_desc,updatetime num=5}
uid会员在news表的catid总共发布了多少条信息?
catid限最终栏目
{/module }