为什么出错呢?高手指点一下!

arclala arclala 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
<%
id=request("id")
set rs=server.createobject("adodb.recordset")
sql="delete * from admin where id="&id
rs.open sql,conn,3,3
if rs.eof and rs.bof then
response.write"<SCRIPT language=JavaScript>alert('对不起,该用户不存在或已被删除!');"
response.write"javascript:window.location = 'index.asp';</SCRIPT>"
response.end
else
set rs=nothing
conn.close
set conn=nothing
response.write"<SCRIPT language=JavaScript>alert('OK,该用户已被删除!');"
response.write"javascript:history.go(-1);</SCRIPT>"
end if
%>
调试时总提醒我到“if rs.eof and rs.bof then ”这一行时ADODB.Recordset (0x800A0E78)错误呢?为什么呢?谢谢!
...全文

相关推荐

评论 6
收藏 已收藏
分享
返回顶部
arclala
ASP 28,401 成员 356,940 内容