请版主帮忙:为什么计数器会自己增加点击量(请版主帮忙,已经一周都没有解决了。苦啊)
为什么计数器会自己增加点击量,很郁闷啊。帮忙注释一下这个程序。那里错了怎么修改。<%
if session("over")="" then
jsqtoday=1
if application("dntime")<=cint(hour(time())) then '在百度搜索的时候说这句话有问题
conn.execute("update dept set jsqtoday=jsqtoday+1")
tmprs=conn.execute("Select jsqtoday from dept")
jsqtoday=tmprs(0)
else
conn.execute("update dept set jsqtoday=1")
tmprs=conn.execute("Select jsqtoday from dept")
jsqtoday=tmprs(0)
end if
application("dntime")=cint(hour(time()))
set tmprs=nothing
conn.execute("update dept set jsq=jsq+1")
tmprs=conn.execute("Select jsq from dept")
jsq=tmprs(0)
set tmprs=nothing
session("over")=true
else
jsqtoday=1
tmprs=conn.execute("Select jsqtoday from dept")
jsqtoday=tmprs(0)
tmprs=conn.execute("Select jsq from dept")
jsq=tmprs(0)
set tmprs=nothing
end if
%>
[[it] 本帖最后由 fireing 于 2008-5-2 16:21 编辑 [/it]]