拖拉机的游戏:Microsoft VBScript 运行时错误 (0x800A01B6)

来源:百度文库 编辑:高校问答 时间:2024/05/05 20:34:28
技术信息(用于支持人员)

错误类型:
Microsoft VBScript 运行时错误 (0x800A01B6)
对象不支持此属性或方法: 'execute'
/jiyang/cx/yhxg.asp, 第 137 行

浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)

网页:
GET /jiyang/cx/yhxg.asp

时间:
2006年7月29日, 17:05:45

详细信息:
Microsoft 支

程序如下:
<%
pass=trim(request("pass"))
pass1=trim(request("pass1"))
pass2=trim(request("pass2"))
if (pass<>"" and pass1<>"" and pass2<>"") then
if (pass1<>pass2) then
response.write("<script> alert('两次输入的新密码不一致!')</script>")
response.end
else
sql="select username,pass from chaxun where username='" & aaa & "' and pass='" & pass & "'"

set rs=chaxun.execute(sql)
if not rs.eof then
conn.execute("update chaxun set pass='" & pass1 & "' where usename='"& aaa &"'")
response.write("<script> alert('密码修改成功!');</script>")
else
response.write("<script> alert('旧密码错误!');</script>")
response.end
end if
end if
end if
%>

set rs那一句改成:

set rs=server.createobject("adodb.recordset")

就完成了。

conn.execute("update chaxun set pass='" & pass1 & "' where usename='"& aaa &"'")
修改成
chaxun.execute("update chaxun set pass='" & pass1 & "' where usename='"& aaa &"'")