首页 > CMS > 帝国Empire > 正文

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

2024-07-09 22:50:59
字体:
来源:转载
供稿:网友

使用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");?>
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表