帝国CMS模版中获取指定时间内更新的信息数量
2024-04-01
帝国CMS模版中用sql调用获取指定时间内更新的信息数量的方法:
12小时内的信息数: <?=$empire->gettotal(select count(*) as total from phome_ecms_表 where newstime>UNIX_TIMESTAMP()-24*3600)?> 6小时内的信息数: <?=$empire->gettotal(select count(*) as total from phome_ecms_表 where newstime>UNIX_TIMESTAMP()-6*3600)?>
声明:模库网 (www.mokuw.com) 内容来自分享和网络收集,仅供学习与参考测试请备份。 转载请注明本文地址,如有侵权请联系我们!
本文地址:/study/746.html


