帝国CMS统计指定时间内信息更新的数量

  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")?>

 

wx.jpg ywfw.jpg
热门