本文整理自网络,侵删。
本文实例讲述了帝国CMS统计留言数量的方法。分享给大家供大家参考。具体实现方法如下:
帝国CMS指定模型下的留言数量代码如下:
代码如下:
<?php
$totalnum=(int)$_GET['totalnum'];
$totalquery="select count(*) as total from ***_enewsgbook where bid=1 and checked=0";
$num=$empire->gettotal($totalquery);//取得总条数
echo $num;
?>
帝国CMS不指定模型留言数量代码如下:
$totalnum=(int)$_GET['totalnum'];
$totalquery="select count(*) as total from ***_enewsgbook where bid=1 and checked=0";
$num=$empire->gettotal($totalquery);//取得总条数
echo $num;
?>
帝国CMS不指定模型留言数量代码如下:
代码如下:
<?php
$totalnum=(int)$_GET['totalnum'];
$totalquery="select count(*) as total from ***_enewsgbook";
$num=$empire->gettotal($totalquery);//取得总条数
echo $num;
?>
$totalnum=(int)$_GET['totalnum'];
$totalquery="select count(*) as total from ***_enewsgbook";
$num=$empire->gettotal($totalquery);//取得总条数
echo $num;
?>
希望本文所述对大家的帝国CMS建站有所帮助。
标签:帝国CMS
相关阅读 >>
discuz! x3.1 判断会员登录状态及外部调用注册登录框的实现代码
帝国CMS内容页模板把当前文章发布时间改成年月号星期几显示方式
jquery html css 实现王者荣耀官网首页效果 附实例代码
给帝国CMS 腾讯qq、淘宝旺旺、微软msn、谷歌gtalk 等在线客服增加方法
更多相关阅读请进入《帝国CMS》频道 >>