知优站长资源网下面的帝国CMS教程栏目为您提供了按照小时显示更新数量怎么实现

用sql调用
12小时:

按照小时显示更新数量怎么实现(怎么更新页数)  更新数量 第1张

<?=$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")?>
转载请说明出处
知优网 » 按照小时显示更新数量怎么实现(怎么更新页数)

发表评论

您需要后才能发表评论