其實就是用SQL語句的count來統(tǒng)計數(shù)據(jù)表里面的信息數(shù),,具體代碼如下:(直接模板里用PHP輸出即可)
會員數(shù)量:
<?=$empire->gettotal("select count(*) as total from phome_enewsmember");?>
留言數(shù)量:
<?=$empire->gettotal("select count(*) as total from phome_enewsgbook");?>
評論數(shù)量:
<?=$empire->gettotal("select count(*) as total from phome_enewspl_1");?>