我的知识记录

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

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

 

标签:帝国cms移动端-帝国cms到底好不好-帝国cms7.5-帝国cms8.0-

更新时间:2025-04-11 00:46:19

上一篇:请问帝国CMS在列表页模板显示信息的收藏次数方法

下一篇:请问帝国CMS修改网站logo,帝国CMS Logo更换步骤