帝國CMS指定模型下的留言數(shù)量 代碼:
<?php $totalnum=(int)$_GET['totalnum']; $totalquery="select count(*) as total from ***_enewsgbook where bid=1 and checked=0"; $num=$empire->gettotal($totalquery);//取得總條數(shù) echo $num; ?>
帝國CMS不指定模型留言數(shù)量 代碼:
<?php $totalnum=(int)$_GET['totalnum']; $totalquery="select count(*) as total from ***_enewsgbook"; $num=$empire->gettotal($totalquery);//取得總條數(shù) echo $num; ?>
版權(quán)聲明: 本站資源均來自互聯(lián)網(wǎng)或會員發(fā)布,如果侵犯了您的權(quán)益請與我們聯(lián)系,我們將在24小時內(nèi)刪除!謝謝!
轉(zhuǎn)載請注明: 帝國CMS二次開發(fā)統(tǒng)計留言數(shù)量