Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e21'
<%else
set rs=server.CreateObject("ADODB.RecordSet")
if request("type")="info" then
KN=split(request("k")," ")
for i = 0 to ubound(KN)
KNN=KNN&" or title like '%"&KN(i)&"%' or info like '%"&KN(i)&"%'"
next%><!--#include file="admin/mdb_path_info.asp"--><%
sql="select * from info where title like '%"&request("k")&"%'"&KNN&" order by "&pl&" desc"
else
KN=split(request("k")," ")
for i = 0 to ubound(KN)
KNN=KNN&" or cxn like '%"&KN(i)&"%' or cxv like '%"&KN(i)&"%' or body like '%"&KN(i)&"%'"
next
%><!--#include file="admin/mdb_path_down.asp"--><%
sql="select * from down where (cxn like '%"&request("k")&"%'"&KNN&")"&skCD&" order by "&pl&" desc"
end if
rs.open sql,conn,1,1
if rs.eof then
%>
提示说rs.open sql,conn,1,1这一行有错误,这是个页面搜索引擎文件,以前还能用的,怎么现在不能用了?我从来没动过这个文件的
参考答案:这种错误通常是参数失效了,最多的是SQL语句失效,也有可能是rs无效,当然conn,1,1这几个参数也有可能出错,但几率不大。另外,检查一下你的数据库连接页面admin/mdb_path_down.asp ,它可能消失了,或者被动过了,或者路径错了