帝国CMS首页模板调用会员数+用户留言数+用户评论数的方法
帝国CMS首页模板里面怎么调用会员数量?用户留言以及用户评论数量呢?其实就是用SQL语句的count来统计数据表里面的信息数.方法很简单,下面帝国CMS模板网来为大家分析:
具体代码如下:(直接模板里用PHP输出即可)
会员数量:
<?=$empire->gettotal("select count(*) as total from phome_enewsmember");?>留言数量:
<?=$empire->gettotal("select count(*) as total from phome_enewsgbook");?>评论数量:
<?=$empire->gettotal("select count(*) as total from phome_enewspl_1");?>© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
喜欢就支持以下吧





