<?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;
?>