帝国CMS首页调用会员数/留言数/评论数教程

分类:数据调用教程 发布时间:2019-06-03 10:42:15

摘要:帝国CMS首页如何&怎么调用会员数/留言数/评论数?调用会员总数,留言总数,评论总数的教程&方法。

使用SQL语句的count来统计数据表里面的信息数,具体代码如下:

会员数量:

  1. <?=$empire->gettotal("select count(*) as total from phome_enewsmember");?>

留言数量:

  1. <?=$empire->gettotal("select count(*) as total from phome_enewsgbook");?>

评论数量:

  1. <?=$empire->gettotal("select count(*) as total from phome_enewspl_1");?>