帝国cms统计今日文章数,昨日文章数,总文章数,会员数,最新会员

  • A+
所属分类:帝国cms技巧

内容摘要

<?php $members=$empire->gettotal("select count(*) as total from phome_enewsmember"); $newmember=$empire->fetch1("select userid,username from phome_enewsmember o

文章正文

<?php

 

$members=$empire->gettotal("select count(*) as total from phome_enewsmember");

 

$newmember=$empire->fetch1("select userid,username from phome_enewsmember order by userid desc limit 1");

 

$tzcount=$empire->gettotal("select count(*) as total from phome_ecms_news");

 

$plnum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewspl");

 

$pltzcont=$tzcount+$plnum;

 

?>

 

<div class="forumstatus">

 

今日: <em class="numeric">[totaldata]'news',2,1[/totaldata]</em> ,

 

昨日: <em class="numeric">[ztotal]栏目ID[/ztotal]</em> ,

 

主题: <em class="numeric"><?=$tzcount?></em> ,

 

帖子: <em class="numeric"><?=$pltzcont?></em> ,

 

用户: <em class="numeric"><?=$members?></em>,

 

最新会员: <em class="numeric"><?=$newmember[username]?></em>

 

</div>

 

代码注释

  • 我的微信
  • 这是我的微信扫一扫
  • weinxin
  • 我的微信公众号
  • 我的微信公众号扫一扫
  • weinxin

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: