ACCESS+ASP 做站内搜索

2024-11-27 18:56:05
推荐回答(3个)
回答1:


<%ssk=trim(request("ssk"))%>

'这裏就是你要输入的关健词哟


'?????????????????????????????
<%
set rs=server.createobject("ADODB.Recordset")
x=request("sousuo")
select case x
case "book"
sql="select * from book where mingzi like'%"&ssk&"%'"
case "wangluo"
sql="select * from wangluo where dizhi like'%"&ssk&"%'"
end select
rs.open sql,conn,3,3
%>
'???????????????????????

回答2:










 
显示全部 
checked<% End If %>>Exact phrase  checked<% End If %>>All words  checked<% End If %>>Any word

这是我用一个软件生成的。我也对asp不熟。但是我会找软件。呵呵

回答3:

sql:
select mingzi,dizhi from book,wangluo where book.搜索字段名 like '*ssk*' and wangluo.搜索字段名 like '*ssk*'