帝国cms按照小时显示更新数量统计代码
本文介绍如何用标签代码统计按小时更新的内容数量,对一定时间内容的更新信息进行统计,方法很简单下面介绍两个例子:
12小时发文数量统计: <?=$empire->gettotal("select count(*) as total from zhan_ecms_news where newstime>UNIX_TIMESTAMP()-24*3600")?>
6小时发文数量统计: <?=$empire->gettotal("select count(*) as total from zhan_ecms_news where newstime>UNIX_TIMESTAMP()-6*3600")?>
一周统计:<?=$empire->gettotal("select count(*) as total from zhan_ecms_news where newstime>UNIX_TIMESTAMP()-168*3600")?>
上面写的是统计新闻表的,如果要统计其它且只需要改下表名即可。
小时 显示更新 数量统计
nsyt_D.exe是什么文件?nsyt_D.exe是不是病毒
naviagent.exe是什么文件?naviagent.exe是不是病毒
netsupet.exe是什么文件?netsupet.exe是不是病毒
ntfis.exe是什么文件?ntfis.exe是不是病毒
netrt.exe是什么文件?netrt.exe是不是病毒
nhc.exe是什么文件?nhc.exe是不是病毒
nldrw32.exe是什么文件?nldrw32.exe是不是病毒
npkcrypt.sys是什么文件?npkcrypt.sys是不是病毒
new.exe是什么文件?new.exe是不是病毒
NT2000.exe是什么文件?NT2000.exe是不是病毒