标题:[求助]这个是哪错了?
只看楼主
本刚
Rank: 1
等 级:新手上路
威 望:1
帖 子:192
专家分:0
注 册:2005-12-3
 问题点数:0 回复次数:1 
[求助]这个是哪错了?

请问红色部分是什么意思
<%
mode = LCASE(Request("mode"))
Set conn = Server.CreateObject("ADODB.Connection")
DBPath = Server.MapPath("lianxi.mdb")
conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath
SET rs = Server.CreateObject("ADODB.Recordset")
Rs.Open "Select * From counters" , conn,1,3

IF CSTR(Month(RS("DATE"))) <> CSTR(Month(DATE())) THEN

RS("DATE") = DATE()
RS("YESTERDAY") = RS("TODAY")
RS("BMONTH") = RS("MONTH")
RS("MONTH") = 0
RS("TODAY") = 0
RS.Update


ELSE

IF CSTR(Day(RS("DATE"))) <> CSTR(Day(DATE())) THEN
RS("DATE") = DATE()
RS("YESTERDAY") = RS("TODAY")
RS("TODAY") = 0
RS.Update
END IF
END IF


RS("TOTAL") = RS("TOTAL") + 1
RS("TODAY") = RS("TODAY") + 1
RS("MONTH") = RS("MONTH") + 1
RS.Update

response.write "<font size=2 color=000099>今日浏览总人数:</font>"
numshow( RS("TODAY") )
response.write "<br>"

response.write "<font size=2 color=000099>昨日浏览总人数:</font>"
numshow( RS("YESTERDAY") )
response.write "<br>"

response.write "<font size=2 color=000099>本月浏览总人数:</font>"
numshow( RS("MONTH") )
response.write "<br>"

response.write "<font size=2 color=000099>上月浏览总人数:</font>"
numshow( RS("BMONTH") )
response.write "<br>"

response.write "<font size=2 color=000099>本站浏览总人数:</font>"
numshow( RS("TOTAL") )
response.write "<br>"

response.write "</td>"
response.write "<td valign=""top"">"
N = Now
D2 = DateValue(N)
D1 = #09/01/2004# ' 开始统计日期(月/日/年)


response.write "<font size=2 color=000099>开站至今天的总天数:</font>"
numshow( DateDiff("d", D1, D2) )
response.write "<br>"
D3 = DateDiff("d", D1, D2)
response.write "<font size=2 color=000099>平均人数/日:</font>"
numshow( RS("TOTAL")\D3 )

CONN.CLOSE


Function numshow( counter )

Dim S, i, G
S = CStr( counter )

For i = 1 to Len(S)

G = G & "<IMG SRC=./gif/" & Mid(S, i, 1) & ".gif Align=middle>"
Next
response.write G

End Function

%>
看下绿色的字那些的具体意思是什么???????
我看不懂啊

[此贴子已经被作者于2006-1-20 18:39:45编辑过]

搜索更多相关主题的帖子: Microsoft Request color 
2006-01-20 14:22
junx
Rank: 1
等 级:新手上路
帖 子:85
专家分:0
注 册:2005-12-18
得分:0 
mode = LCASE(Request("mode")):将从请求页面传过来的mode值改为小写;

IF CSTR(Month(RS("DATE"))) <> CSTR(Month(DATE())) THEN:如果字段DATE的月份与当前月份相等

2006-01-20 16:12



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-43503-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.754739 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved