ASP 80040e14' SELECT 子句中包含一个保留字、拼写错误或丢失的参数,或标点符号不正确。
<formid="form1"name="form1"method="post"action=""><labelfor="key"></label><inputtype=...
<form id="form1" name="form1" method="post" action="">
<label for="key"></label>
<input type="text" name="key" id="key" />
<input type="submit" name="dd" id="dd" value="搜" />
</form>
<!--#include file="conn1.asp"-->
<%
key=request.form("key")
%>
<%
set rs=server.createobject("adodb.recordset")
SqlStr="select top 10* from [shu] where shu_hao like '"& key &"' ORDER BY shu_id DESC"
rs.open SqlStr,conn,1,1
do while not rs.eof
i=i+1
%>
<table width="990" border="0.5">
<tr>
<td width="74" bgcolor="#99FFFF"><%=(Rs.Fields.Item("shu_id").Value)%></td>
<td width="127" bgcolor="#99FFCC"><%=(Rs.Fields.Item("shu_hao").Value)%></td>
<td width="141" bgcolor="#CCFFFF"><%=(Rs.Fields.Item("shu_name").Value)%></td>
<td width="178" bgcolor="#CCFFCC"><%=(Rs.Fields.Item("shu_zuozhe").Value)%></td>
<td width="160" bgcolor="#FFFFCC"><%=(Rs.Fields.Item("shu_guige").Value)%></td>
<td width="128" bgcolor="#FFFF66"><%=(Rs.Fields.Item("shu_orice").Value)%></td>
<td width="72"><div align="center">租借</div></td>
<td width="76"><div align="center">购买</div></td>
</tr>
</table>
<%
if i mod 4 = 0 then
Response.Write "</tr><tr>"
end if
rs.movenext
loop
rs.close
%> 展开
<label for="key"></label>
<input type="text" name="key" id="key" />
<input type="submit" name="dd" id="dd" value="搜" />
</form>
<!--#include file="conn1.asp"-->
<%
key=request.form("key")
%>
<%
set rs=server.createobject("adodb.recordset")
SqlStr="select top 10* from [shu] where shu_hao like '"& key &"' ORDER BY shu_id DESC"
rs.open SqlStr,conn,1,1
do while not rs.eof
i=i+1
%>
<table width="990" border="0.5">
<tr>
<td width="74" bgcolor="#99FFFF"><%=(Rs.Fields.Item("shu_id").Value)%></td>
<td width="127" bgcolor="#99FFCC"><%=(Rs.Fields.Item("shu_hao").Value)%></td>
<td width="141" bgcolor="#CCFFFF"><%=(Rs.Fields.Item("shu_name").Value)%></td>
<td width="178" bgcolor="#CCFFCC"><%=(Rs.Fields.Item("shu_zuozhe").Value)%></td>
<td width="160" bgcolor="#FFFFCC"><%=(Rs.Fields.Item("shu_guige").Value)%></td>
<td width="128" bgcolor="#FFFF66"><%=(Rs.Fields.Item("shu_orice").Value)%></td>
<td width="72"><div align="center">租借</div></td>
<td width="76"><div align="center">购买</div></td>
</tr>
</table>
<%
if i mod 4 = 0 then
Response.Write "</tr><tr>"
end if
rs.movenext
loop
rs.close
%> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询