经典技巧帝国CMS统计留言数量的方法

经典技巧帝国CMS统计留言数量的方法

本文实例讲述了帝国cms统计留言数量的方法。分享给大家供大家参考。具体实现方法如下:

帝国cms指定模型下的留言数量代码如下:

代码如下:

<?php $totalnum=(int)$_GET[&#39;totalnum&#39;]; $totalquery="select count(*) as total from ***_enewsgbook where bid=1 and checked=0"; $num=$empire->gettotal($totalquery);//取得总条数 echo $num; ?&gt;

推荐学习《帝国cms教程

帝国cms不指定模型留言数量代码如下:

代码如下:

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

希望本文所述对大家的帝国CMS建站有所帮助。

© 版权声明
THE END
喜欢就支持一下吧
点赞13 分享