加入收藏 设为首页 会员中心 我要投稿 RSS
您当前的位置:首页 > 帝国CMS

帝国CMS显示指定时间内更新的信息数量

时间:2023-12-27 18:02:34  来源:  作者:

帝国CMS显示指定时间内更新的信息数量,如1天内列新多少条信息:

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


来顶一下
返回首页
返回首页
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
推荐资讯
相关文章
栏目更新
栏目热门