今天出现这样一个错误:
技术信息(用于支持人员)
- 错误类型:
Microsoft VBScript 运行时错误 (0x800A01FB)
出现一个意外错误: 'conn.execute'
login2.asp, 第 17 行
<%if request("action")="login" then
username=request.form("username")
pass=request.form("password")
if username="" or pass="" then
response.Write("<script language=javascript>alert('请填写完整!');history.go(-1)</script>")
end if
sql="SELECT * FROM member WHERE name='" & Replace(username,"'","''") & "' and pass='" & Replace(pass,"'","''") & "' "
set rs=conn.execute(sql) '这里是第17行
if rs.eof or rs.bof then
response.write "<script language=javascript>"
response.write "alert('用户(密码)不对或已被管理员关闭帐号!');"
response.write "javascript:history.go(-1);"
response.write "</script>"
else
response.cookies("name")=rs("name")
response.cookies("class")=rs("class")
session.Timeout=180
session("user")=name
session("pass")=pass
session("class")=jclass
Server.Transfer ("login2.asp")
end if
end if
%>
请各位大虾帮忙解答,谢谢!