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

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

本文摘自网络,不代表短经典网立场 https://www.duanjingdian.com/858.html

上一篇 2024 年 8 月 20 日
下一篇 2024 年 8 月 21 日

相关推荐