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