按照小时显示更新数量怎么实现
2009-11-25 站长 站长日志
用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")?>
上一篇:如何设置首页分页
下一篇:完美替换“当前位置导航”