帝国CMS首页调用会员数/留言数/评论数的方法
其实就是用SQL语句的count来统计数据表里面的信息数,具体代码如下:(直接模板里用PHP输出即可)会员数量:<?=$empire->gettotal("select count(*) as total from phome_enewsmember");?>留言数量:<?=$empire->gettotal("selec……
其实就是用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");?>
- 上一篇
帝国CMS教程图集字段的大图,小图,说明的调用
<b>morepic参数:</b><br /><?php$arr = array();$arr = $navinfor['morepic'];$newarr = explode(egetzy('rn'),$arr);$count = count(explode(egetzy('rn'),$navinfor[morepic]));//图集的图片数量for($i=0;$i<$count
- 下一篇
帝国CMS7.5搜索页面模板不支持灵动标签和万能标签的解决方法
1,打开 /e/search/result/index.php 文件查找require("../../class/connect.php");require("../../class/db_sql.php");require("../../data/dbcache/class.php");require("../../class/q_functions.php");require "..