其實(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");?>