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