本文實(shí)例講述了帝國(guó)CMS統(tǒng)計(jì)留言數(shù)量的方法。分享給大家供大家參考。具體實(shí)現(xiàn)方法如下:
帝國(guó)CMS指定模型下的留言數(shù)量代碼如下:
復(fù)制代碼
代碼如下:<?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;
?>
$totalnum=(int)$_GET['totalnum'];
$totalquery="select count(*) as total from ***_enewsgbook where bid=1 and checked=0";
$num=$empire->gettotal($totalquery);//取得總條數(shù)
echo $num;
?>
帝國(guó)CMS不指定模型留言數(shù)量代碼如下:
復(fù)制代碼
代碼如下:<?php
$totalnum=(int)$_GET['totalnum'];
$totalquery="select count(*) as total from ***_enewsgbook";
$num=$empire->gettotal($totalquery);//取得總條數(shù)
echo $num;
?>
$totalnum=(int)$_GET['totalnum'];
$totalquery="select count(*) as total from ***_enewsgbook";
$num=$empire->gettotal($totalquery);//取得總條數(shù)
echo $num;
?>
希望本文所述對(duì)大家的帝國(guó)CMS建站有所幫助。
【網(wǎng)站聲明】本站除付費(fèi)源碼經(jīng)過(guò)測(cè)試外,其他素材未做測(cè)試,不保證完整性,網(wǎng)站上部分源碼僅限學(xué)習(xí)交流,請(qǐng)勿用于商業(yè)用途。如損害你的權(quán)益請(qǐng)聯(lián)系客服QQ:2655101040 給予處理,謝謝支持。