其實(shí)就是用SQL語(yǔ)句的count來(lái)統(tǒng)計(jì)數(shù)據(jù)表里面的信息數(shù),具體代碼如下:(直接模板里用PHP輸出即可)
會(huì)員數(shù)量:=$empire->gettotal("select count(*) as total from phome_enewsmember");?>
留言數(shù)量:=$empire->gettotal("select count(*) as total from phome_enewsgbook");?>
評(píng)論數(shù)量:=$empire->gettotal("select count(*) as total from phome_enewspl_1");?>
版權(quán)聲明: 本站資源均來(lái)自互聯(lián)網(wǎng)或會(huì)員發(fā)布,如果侵犯了您的權(quán)益請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)刪除!謝謝!
轉(zhuǎn)載請(qǐng)注明: 帝國(guó)CMS首頁(yè)調(diào)用會(huì)員數(shù)/留言數(shù)/評(píng)論數(shù)的方法