帝国cms首页获取调用会员数量、用户留言数量以及评论数

bangongJIAO1@c 发布于 2025-11-29 阅读(15)

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

表前缀修改成自己程序的表前缀。


发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。