12小时发文数量统计: <?=$empire->gettotal("select count(*) as total from www_moban5_cn_ecms_news where newstime>UNIX_TIMESTAMP()-24*3600")?>
6小时发文数量统计: <?=$empire->gettotal("select count(*) as total from www_moban5_cn_ecms_news where newstime>UNIX_TIMESTAMP()-6*3600")?>
上面写的是统计新闻表的,如果要统计其它且只需要改下表名即可。
以上就是帝国cms按照小时显示更新数量统计代码方法。