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

本文主要展示帝国CMS统计今日文章数量,昨日文章数量,总共文章数量,文章+评论数量,会员数量,最新会员的代码&l;?php $membes=$empie->geoal(\"seleccou(*)asoalfomph

本文主要展示帝国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>

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

给TA打赏
共{{data.count}}人
人已打赏
帝国CMS教程

帝国cms7.5使用php7.4版本登陆后台报错(Function get_magic_quotes_gpc() is deprecated)解决方法

2023-10-3 18:33:02

帝国CMS教程

帝国cms判断当前栏目ID为1则执行特定css

2023-10-4 10:33:07

!
你也想出现在这里?立即 联系我们吧!
信息
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
搜索