帝国CMS首页调用会员数/留言数/评论数的方法

其实就是用SQL语句的count来统计数据表里面的信息数,具体代码如下:(直接模板里用PHP输出即可)

会员数量:gettotal(“select count(*) as total from phome_enewsmember”);?>
留言数量:gettotal(“select count(*) as total from phome_enewsgbook”);?>
评论数量:gettotal(“select count(*) as total from phome_enewspl_1”);?>

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注