首页 > CMS教程 > 帝国Empire > 正文

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

2024-04-25 20:53:43
字体:
来源:转载
供稿:网友

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

 

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表

图片精选