您现在的位置是:首页 > 教程 > 帝国CMS教程帝国CMS教程

帝国CMS统计今日昨日文章数,总文章数,会员数,最新会员的方法

渊霖2023-04-22 22:56:28帝国CMS教程已有人查阅

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

帝国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>

本文标签:

很赞哦! ()

留言与评论 (共有 条评论)
验证码:

相关标签