您现在的位置是:首页 > 教程 > 帝国CMS教程帝国CMS教程

帝国CMS二次开发统计留言数量的方法

冷安2023-06-01 23:05:11帝国CMS教程已有12人查阅

导读帝国CMS指定模型下的留言数量 代码:帝国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;
?>

本文标签:

很赞哦! (0)

暂无内容
暂无内容
暂无内容
暂无内容
留言与评论 (共有 0 条评论)
昵称:
匿名发表 登录账号
         
验证码:
    暂无内容
    暂无内容

相关标签

    暂无内容