asp错误请教:ADODB.Recordset (0x800A0E7D)

来源:百度知道 编辑:UC知道 时间:2024/09/24 07:01:05
<!--#include file="asp/opendb.asp"-->
<!--#include file="asp/checkuser.asp"-->
<!--#include file="asp/checkqs.asp"-->
<html>
<head>
<%
key=request("key")
if key="" then
response.write "<script>alert('关键词不能为空!');history.back();</Script>"
response.end
end if
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>
<body>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#000000">
<%
set rs=server.CreateObject("adodb.recordset")
sql="select * from filedata where title Like '%"& key &"%' order by id desc"
rs.open sql,conn,1

报的什么错:
rs.open sql,conn,1
rs.open sql,conn,1,1

你要贴出报错的是哪一行,

rs.open sql,conn,1
这句明显错误。
要么
rs.open sql,conn,1,1
要么
rs.open sql,conn,1,3

rs.open sql,conn,1 明显错误,缺少参数啊

rs.open sql,conn,1,1 数据库只可读不可写入
rs.open sql,conn,1,3 对数据库可读可写入