帝国CMS模版中用sql调用获取指定时间内更新的信息数量的方法:

12小时内的信息数:
<?=$empire->gettotal(select count(*) as total from phome_ecms_表 where newstime>UNIX_TIMESTAMP()-24*3600)?>
6小时内的信息数:
<?=$empire->gettotal(select count(*) as total from phome_ecms_表 where newstime>UNIX_TIMESTAMP()-6*3600)?>