您的位置:宽带测速网 > 帝国cms > 帝国CMS统计留言数量的方法

帝国CMS统计留言数量的方法

2025-08-25 08:57来源:互联网 [ ]

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

?

猜您喜欢的源码帝国CMS模板博客文章资讯自适应手机HTML5网站SEO优化版

帝国CMS7.5内核简洁文章资讯自适应手机HTML5综合类模板源码【内页 文章页、列表标题,描述,严格的SEO标题规范,利于SEO】