1. 12小时内

     
     
    <?=$empire->gettotal("select count(*) as total from [!db.pre!]ecms_表 where newstime > UNIX_TIMESTAMP() - 12*3600")?>
  2. 6小时内

     
     
    <?=$empire->gettotal("select count(*) as total from [!db.pre!]ecms_表 where newstime > UNIX_TIMESTAMP() - 6*3600")?>