| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1229 人关注过本帖
标题:[求助]BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除
取消只看楼主 加入收藏
lishizhong_899
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2008-11-29
收藏
 问题点数:0 回复次数:2 
[求助]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
%>
搜索更多相关主题的帖子: BOF EOF 记录 删除 
2008-11-29 11:58
lishizhong_899
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2008-11-29
收藏
得分:0 
回复 第5楼 心海潮汐 的帖子
可是我不知道怎么改,在哪里改,谢谢
2008-11-30 12:40
lishizhong_899
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2008-11-29
收藏
得分:0 
回复 第7楼 心海潮汐 的帖子
还是不行啊,我都急死啦
2008-12-02 09:22
快速回复:[求助]BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018803 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved