[求助]BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除
BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录。/bbs/list.asp, 第 39 行
<!--#include file="config.asp" -->
<!--#include file="cn.asp" -->
<%
if request.form("ok")<>""then
userid=request.cookies("userid")
if userid=""then
response.redirect"login.asp?m=4"
%>
<script language="vbscript">
alert("您还没有登录!")
location.href="login.asp"
</script>
<%
response.end
end if
title=do_yinhao(request.form("title"))
pic=do_yinhao(request.form("pic"))
content=do_yinhao(request.form("content"))
dt=now()
visit_num=0
reply_num=0
ip=request.servervariables("remote_addr")
os_ie=request.servervariables("http_user_agent")
os=system(os_ie)
ie=browser(os_ie)
small_id=request.form("small_id")
sql="insert into info(title,pic,content,userid,dt,visit_num,reply_num,ip,os,ie,small_id)values('"&title&"','"&pic&"','"&content&"','"&userid&"','"&dt&"','"&visit_num&"','"&reply_num&"','"&ip&"','"&os&"','"&ie&"','"&small_id&"')"
cn.execute(sql)
cn.execute("update users set mark=mark+100 where userid='"&request.cookies("userid")&"'")
%>
<script language="vbscript">
alert("发布成功!")
location.href="list.asp?small_id=<%= small_id %>"
</script>
<%
end if
small_id=request.querystring("small_id")
set rs=cn.execute("select * from small where small_id='"&small_id&"'")
small_name=rs("small_name")
big_id=rs("big_id")
rs.close:set rs=nothing
set rs=cn.execute("select * from big where big_id='"&big_id&"'")
big_name=rs("big_name")
rs.close:set rs=nothing
%>