📄 search.asp
字号:
<!--#include file="conn.asp" -->
<!--#include file="config.asp"-->
<html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<%
search=request.form("search")
if request("search")="" then
response.write "请输入关键字,请返回"
response.end
end if
%>
<%sql="select * from hao where qs like '%"&search&"%' order by id desc"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if rs.eof and rs.bof then
%>
没有数据,或非法字符!
<%else%>
<%do while not rs.eof%>
<%=rs("qs")%> <%=rs("p1")%> <%=rs("p2")%>
<%=rs("p3")%> <%=rs("p4")%> <%=rs("p5")%>
<%=rs("p5")%> <%=rs("p6")%> <font color="#FF0000"><%=rs("tm")%></font><br>
<%
rs.movenext
loop
end if
rs.close
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -