M1850资源网 - 最专业的网站源码模板下载站!

全部作品
全部作品
织梦模板
网站模板
源码插件
游戏源码
脚本特效
视频教程
建站教程
M1850资源网 > 建站教程 > 帝国教程 > 按照小时显示更新数量怎么实现

推荐下载

标签推荐

>> 更多

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

用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")?>
嘿,我来帮您!

展开