asp '80020009' 错误

来源:百度知道 编辑:UC知道 时间:2024/06/16 18:23:39
错误提示如下:
'80020009'

\wwwroot\bbs2\index.asp, line 12

代码如下:

<!--#include file="dbpath.asp"-->
<%
user=request("user")
if user="" or request.querystring="" then
response.redirect "reg.asp"
end if
set rs=server.createobject("adodb.recordset")
sql="select * from [user] where user='"&user&"'"
rs.open sql,conn,1,1

'###检查cookies,如果密码正确侧进入管理状态
if rs("user")="" then 此处为发生错误的地方
else
if session("user")=rs("user") and session("pwd")=rs("pwd") then
adminok="ok"
end if
end if
'###检查结束###

%>
.....
..... </body>
<%rs.close

http://zhidao.baidu.com/question/16615646.html

if rs("user")="" then 此处为发生错误的地方
if session("user")=rs("user") and session("pwd")=rs("pwd") then