本文整理自网络,侵删。
本文实例讲述了帝国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
相关阅读 >>
acrobat怎么批量保存pdf小图片 pdf文件导出所有图像的技巧
阿里云主机安装帝国CMS时提示php.ini配置有问题的解决方法
更多相关阅读请进入《帝国CMS》频道 >>
相关推荐
评论
管理员已关闭评论功能...
- 欢迎访问木庄网络博客
- 可复制:代码框内的文字。
- 方法:Ctrl+C。