帝国cms按照小时显示更新数量怎么实现

帝国cms按照小时显示更新数量怎么实现

来源:帝国CMS模板网 作者:帝国CMS教程 时间:2009-11-25
浏览:8.1千+ 收藏 点赞(41)
简介: 用帝国cms程序之sql调用12小时:=$empiregettotal("select count(*) as total from phome_ecms_表 where newstimeUNIX_TIMESTAMP()24*3600")6小时:=$empiregettotal("select c

用帝国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")?>
帝国CMS模板网 帝国CMS模板网(www.daixiao360.cn)长期承接帝国CMS模板定制,帝国CMS仿站,帝国CMS采集规则,帝国CMS插件,帝国CMS二次开发。