mysql对象关闭时 不允许操作_解决“对象关闭时,不允许操作。”的办法?

在网站增加到了一个《历史上的今天》栏目,在本地和服务器上查看都正常,但是通过域名访问就出现这样的提示:ADODB.Recordset错误'800a0e78'对象关闭时,不允许操作。/index.asp,行2...

在网站增加到了一个《历史上的今天》栏目,在本地和服务器上查看都正常,但是通过域名访问就出现这样的提示:

ADODB.Recordset 错误 '800a0e78'

对象关闭时,不允许操作。

/index.asp,行 270

下面的原码,上下加“***”号的就是270行。请大侠帮助诊断并修改。谢谢了。

if style="1" then

rs_tmp.Open "select * from Content where PageUrl like '%/"&todaytime&"/%' and not(title like '%诞辰%' or title like '%逝世%')", conn, 1, 1

end if

if style="2" then

rs_tmp.Open "select * from Content where PageUrl like '%/"&todaytime&"/%' and title like '%诞辰%' ", conn, 1, 1

end if

if style="3" then

rs_tmp.Open "select * from Content where PageUrl like '%/"&todaytime&"/%' and title like '%逝世%' ", conn, 1, 1

end if

**************** **************** **************** ****************

If rs_tmp.EOF Or rs_tmp.bof Then%>

**************** **************** **************** ****************

 暂无

Else

j = rs_tmp.recordcount -1

rs_tmp.movefirst

For i = 0 To j

%>

rs_tmp.movenext

Next

end if

rs_tmp.close

set rs_tmp=nothing

%>

展开

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值