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

帝国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");?>
标签: 帝国cms模板网