ASP查询怎么错了

来源:百度知道 编辑:UC知道 时间:2024/06/03 04:49:40
<form name="form1" method="post" action="index.asp">
搜索:<br>
编号=
<input type="text" name="bianhao">

<br>
<input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置">
</form>

<%
requeast(rs)
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">

<tr>
<%
for i=0 to rs.field.count-1
%>
<td height="22"><%=rs("i")%></td>
<%
next
%>
</tr>
</table>

rs.open("SELECT * FROM book WHERE bianhao='"&request("bianhao")&"'",con,3)
改为
rs.open("SELECT * FROM book WHERE bianhao='"&request("bianhao")&"'",con,1,3)

requeast(rs) 是什么意思
rs.field.count 错了,这两句矛盾了,如果上句是得到字段的话,那么下面就是错的,如果rs表示的是recordset对象的话那么上句就错了

是逻辑错误