BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录

[复制链接]
查看11 | 回复0 | 2007-3-13 16:13:42 | 显示全部楼层 |阅读模式
我晕,已经删除了,再点当然报错了,因为RS中为空嘛。在mysql="select * from orders where id="&request("id") 后面加个一个判断:if rs.eof then response.write("您指定的记录不存在或已被删除!")end if*************************************晕,这样加判断:if rs.eof then rs.close conn.close set rs=nothing set conn=nothing 返回搜索无记录页面elsers.delete rs.close conn.close set rs=nothing set conn=nothing end if end if response.Redirect("find.asp")
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行