帝国CMS教程:统计文章数量、会员数量代码

来自:互联网
时间:2023-04-19
阅读:
免费资源网 - https://freexyz.cn/

本文主要展示帝国CMS统计今日文章数量,昨日文章数量,总共文章数量,文章+评论数量,会员数量,最新会员的代码

<?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;
?>

今日: <em>[totaldata]'news',2,1[/totaldata]</em> ,

昨日: <em>[ztotal]栏目ID[/ztotal]</em> ,

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

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

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

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

免费资源网 - https://freexyz.cn/
返回顶部
顶部