原文来自:https://liye5.com/

统计全站TAGS数量写法:

<?php
$ttt=$empire->gettotal("select count(*) as total from zhan_enewstags");
?>
<?=$ttt?>

同样可以举一反三,统计全站栏目总数量:

<?php
$ccc=$empire->gettotal("select count(*) as total from zhan_enewsclass");
?>
<?=$ccc?>