帝国cms小程序 帝国CMS如何调用指定时间内信息数量

帝国CMS教程

如何调用指定时间内信息数量?

下面展示:帝国cms显示指定时间内更新的信息数量

如1天内列新多少条信息:

sql调用

12小时:

  1. <?=$empire->gettotal("select count(*) as total from phome_ecms_表 where newstime>UNIX_TIMESTAMP()-24*3600")?>

6小时:

  1. <?=$empire->gettotal("select count(*) as total from phome_ecms_表 where newstime>UNIX_TIMESTAMP()-6*3600")?>
标签: 帝国cms小程序