帝国CMS统计调用今日文章数、昨日文章数、总文章数、会员数、最新会员数的方法,一起来看看吧:
调用代码:
<?php $members=$empire->gettotal("selectcount(*)astotalfromphome_enewsmember");$newmember=$empire->fetch1("selectuserid,usernamefromphome_enewsmemberorderbyuseriddesclimit1");$tzcount=$empire->gettotal("selectcount(*)astotalfromphome_ecms_news");$plnum=$empire->gettotal("selectcount(*)astotalfrom{$dbtbpre} enewspl");$pltzcont=$tzcount+$plnum;?> <divclass="forumstatus"> 今日:<emclass="numeric">[totaldata]'news',2,1[/totaldata]</em>, 昨日:<emclass="numeric">[ztotal]栏目ID[/ztotal]</em>, 主题:<emclass="numeric"><?=$tzcount?></em>, 帖子:<emclass="numeric"><?=$pltzcont?></em>, 用户:<emclass="numeric"><?=$members?></em>, 最新会员:<emclass="numeric"><?=$newmember[username]?></em> </div>声明:有的资源均来自网络转载,版权归原作者所有,如有侵犯到您的权益 请联系邮箱:312334557@qq.com 我们将配合处理!
原文地址:《帝国CMS统计调用今日文章数、昨日文章数、总文章数、会员数、最新会员数》发布于2022-10-08 14:17:12