PHP 日,周,月点击排行统计
实现代码如下: $now=time(); //当前时间 $StrUpdate = "Update $tbl_article set hits=hits+1"; if(date("d",$lasthittime)==date("d",$now)){//同一天 $StrUpdate = $StrUpda
实现代码如下: $now=time(); //当前时间 $StrUpdate = "Update $tbl_article set hits=hits+1"; if(date("d",$lasthittime)==date("d",$now)){//同一天 $StrUpdate = $StrUpda
实现代码如下: 6 then '在处理星期的期的时候有一个问题,如果上一个时间是星期五,下一次访问是下个星期的星期二,记录还是叠加。 rs1("hitsweeks") = 1 else if weekNow <> 1 then rs1("hitsweeks") = rs1("hitsw
"yes" then application.Lock() conn.execute("update counter set hits=hits+1 where kid=1") //counter是数据库里面用于存储数据的表名 application.UnLock() session("visite