asp制作搜索引擎
来源:百度知道 编辑:UC知道 时间:2024/06/20 06:21:57
制作搜索引擎是不是需要网络蜘蛛??
请教asp如何开发一个搜索引擎的??
请教asp如何开发一个搜索引擎的??
搜索引擎包含几种搜索功能...........
这样是叫几种吗??
表单文件
一个文本框text(Name=Key)
一个select(Name=KeyClass) 其中包括
值 内容
1 按具体内容
2 按时间
3 按标题
4 按点击次数
搜索文件
<%
.........打开数据库 conn
.........建立对像 rs
dim Key,KeyClass
Key=request.Form("Key")
KeyClass=request.Form("KeyClass")
If KeyClass=1 then
sql="select *from news where content like '%"&Key&"%'"
ElseIf Keyclass=2 then
sql="select *from news where time='"&Key&"'"
ElseIf Keyclass=3 then
sql="select *from news where title like '%"&Key&"%'"
ElseIf Keyclass=4 then
sql="select *from news where hit="&Key
End if
rs.open sql,conn,1,3
..........输出
%>