假设表名为:YUANGONG
标号为:BIANHAO
条件(编号)输入框为:BIAOHAO
查询语句为:
<%
set rs=server.CreateObject("adodb.recordset")
sql="select * from YUANGONG where BIANHAO like '%"&trim(request("BIANHAO"))&"%'order by id desc"
rs.open sql,conn ,1,1
if rs.recordcount<>0 then
do while not rs.eof
%>
................
<%
rs.movenext
loop
end if
%>
................
<input name="BIANHAO" type="text" id="IANHAO" size="12" maxlength="11" onMouseOver="this.focus();">
................