优晟SEO

您现在的位置是:首页 > CMS教程 > 帝国cms > 正文

帝国cms

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

数量  
佚名 2024-08-20帝国cms
用帝国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_……

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

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