帝国cms首页用户留言以及用户评论数量呢?其实就是用SQL语句的count来统计数据表里面的信息数.方法很简单,

具体代码如下:(直接模板里用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");?>
表前缀修改成自己程序的表前缀。

觉得上面的内容有用吗?快来点个赞吧!

点赞() 我要打赏

温馨提示 : 本站内容来自会员投稿以及互联网,所有源码及教程均为作者总结编辑,请大家在使用过程中提前做好备份,以免发生无法预知的错误,源码类教程请勿直接用于生产环境!

 可能感兴趣的文章

1 2 3 4 5