帝国CMS按照小时显示更新数量统计代码

COS、CDN
wdzsjl 2个月前 (01-01) 阅读数 211 #工具收纳箱
  1. 12小时发文数量统计

    • 使用以下代码:
      <?= $empire->gettotal("select count(*) as total from cn_ecms_news where newstime > UNIX_TIMESTAMP() - 24 * 3600") ?>
  2. 6小时发文数量统计

    • 使用以下代码:
      <?= $empire->gettotal("select count(*) as total from cn_ecms_news where newstime > UNIX_TIMESTAMP() - 6 * 3600") ?>

 

COS、CDN
热门