{
    分享网正式开通,我们为大家提供免费资源,欢迎大家踊跃投稿!

帝国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不指定模型留言数量 代码:

<?php
$totalnum=(int)$_GET['totalnum'];
$totalquery="select count(*) as total from ***_enewsgbook";
$num=$empire->gettotal($totalquery);//取得总条数
echo $num;
?>



资源均来自第三方,谨慎下载,前往第三方网站下载


米微资源分享网 , 版权所有丨本站资源仅限于学习研究,严禁从事商业或者非法活动!丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:帝国CMS二次开发统计留言数量
喜欢 ()分享 (0)