当前位置:网站首页 > 教程 > 帝国cms教程 > 按照小时显示更新数量怎么实现

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

蓝色枫叶 蓝色枫叶 2020-05-25 前往当前专题: 帝国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")?>

蓝色枫叶

蓝色枫叶

TA很懒,啥都没写...

Copyright 蓝色枫叶 www.lansefengye Rights Reserved.