帝国cms的官方二次开发说明中有写到,大家可能有时候没注意或者觉得这个并不是二次开发的内容。
哪么这个只要写一句代码就可以解决:
12小时:<?=$empire->gettotal("select count(*) as total from www_moban5_cn_ecms_表 where newstime>UNIX_TIMESTAMP()-12*3600")?> 6小时:<?=$empire->gettotal("select count(*) as total from www_moban5_cn_ecms_表 where newstime>UNIX_TIMESTAMP()-6*3600")?> 如果要改成周,月只需要把数字6或者12改成相应的时间就行了,表前缀用的是本站程序默认的 MoBan5源码 的表前缀,有不同的可以改成自己的即可。 以上就是帝国cms统计指定时间内信息更新的数量 统计指定时间文章数量的方法与教程了。