当前位置:网站首页 > 教程 > 帝国cms教程 > 帝国CMS首页调用会员数/留言数/评论数的方法

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

蓝色枫叶 蓝色枫叶 2020-05-25 前往当前专题: 帝国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");?>

蓝色枫叶

蓝色枫叶

TA很懒,啥都没写...

Copyright 蓝色枫叶 www.lansefengye Rights Reserved.