永发信息网

网站后台出错,上传好的新闻后无法修改,修改新闻点击提交就报错:

答案:2  悬赏:30  手机版
解决时间 2021-01-31 14:22
错误类型:
ADODB.Recordset (0x800A0BCD)
BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录。
/slpc/admin1/admin_inform_modifysave.asp, 第 72 行

代码如下:
<%@language=vbscript codepage=936 %>
<%
option explicit
response.buffer=true
%>
<!--#include file="../admin1/inc/conn.asp"-->
<!--#include file="../admin1/inc/config.asp"-->
<!--#include file="../admin1/Admin_ChkPurview.asp"-->
<%
Dim sContent1, i1, isok, rs, sql,fl,fld

For i1 = 1 To Request.Form("content1").Count
sContent1 = sContent1 & Request.Form("content1")(i1)
Next
isok = true
%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../manage.css" type="text/css">
</head>
<body bgcolor="" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" height="43" width="80%">
<tr>
<td height="43"><div align="center"> <br>
<p>
<%
if request.form("ftitle") = "" then
isok = false
%>
</p>
<p><font color="#FF0000">请填写新闻标题!</font></p>
<%
end if
if request.form("fdate") = "" or (not isdate(request.form("fdate"))) then
isok = false
%>
<p><font color="#FF0000">没有填写发布日期或日期格式不正确!</font></p>
<p>
<%
end if
if isok = false then
%>
<a href="JavaScript:history.go(-1)">返回重新填写</a>
<%
end if

if isok then

if isok then
set rs=server.createobject("adodb.recordset")
fld=request.QueryString("fl")
select case fld
case "咨询专区"
sql="select * from zl where id = " & request.form("tempid")
case "普查简报"
sql="select * from fx where id = " & request.form("tempid")
case "执法监督"
sql="select * from sz where id = " & request.form("tempid")
case "工作动态"
sql="select * from szy where id = " & request.form("tempid")
case "基础研究"
sql="select * from yj where id = " & request.form("tempid")
case "水利经济"
sql="select * from jj where id = " & request.form("tempid")
case "普查简报"
sql="select * from rn where id = " & request.form("tempid")
end select
rs.open sql,conn,1,3
rs("ftitle") = request.form("ftitle")
rs("ftext") = sContent1
rs("fdate") = request.form("fdate")
rs("froot")=request.form("froot")
rs.update
rs.close
set rs=nothing
response.redirect("admin_inform_list.asp?fl="&fld)
end if
response.redirect("admin_inform_list.asp?fl="&fld)
end if
%>
</div></td>
</tr>
</table>
</div>
</body>
</html>

我要修改代码,重根本上完成。
最佳答案
要解决最快的方法是重新发布一个新的改好的新闻,再把以前的删除!
还有就是联系提供给你后台系统的客服可以很快的到解决!
全部回答
你右键、看看图片链接地址
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
上海晶缤汽车贸易有限公司地址在什么地方,想
iphone有id锁刷机有用吗
企业退休年龄计算37年零9个月和38年的区别
未冕冠军是什么意思
设f(x)=x/1-x 求f(f(x)) 求反函数(1) y= 3倍
米兰国际时尚造型(永兴路店)地址有知道的么?
上海甲申汽车销售有限公司新九店地址好找么,
我信用卡欠一万五。每个月都是最低还款。我的
我已经26了,家里人特别催,找对象的事情,但
卖个电阻丝多少钱
怪物猎人3蜂蜜最快可以在那里得到
读图,完成下列各题。(共13分)(1)写出图
关山月一诗中统领全诗的是哪一句?由此可以看
上海竞悦汽车销售服务有限公司怎么去啊,我要
怎么求一个长方形鱼缸(无盖)的表面积
推荐资讯
菜鸟驿站(桥头商店404150004)地址在什么地方
佳辉美容美体spa馆地址在哪,我要去那里办事
《从百草园到三味书屋》初一语文题: 1.鲁迅
请一个女生吃饭,她说我减肥,该怎么办呢,继
【去英国注意事项】去英国注意事项还有实用的
同心村地址在什么地方,我要处理点事
宝马X1对比车系奥迪Q3 宝马X1做了什么实现逆
南阳市四职专怎么去啊,我要去那办事
安居家政公司(二小第四门店)地址在什么地方,
想入手一台125C摩托车,刀仔类型的,裸车价格
电话线和电视线可以走一根管吗
平阳县顺溪镇益智幼儿园地址在什么地方,我要
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?