<html>
<head>
</head>
<body>
<table>
<%
Dim conn, rs
Set conn = Server.CreateObject("ADODB
conn.Provider = "Microsoft.Jet.OLEDB.4.0"
conn.Open Server.MapPath("relative path and name of your database.mdb")
Set rs = Server.CreateObject("ADODB
rs.Open "mytable", conn
Do Until rs.EOF
Response.Write "<tr><td>" & rs("field1name") & "</td><td>" & rs("field2name") & "</td><td>" & rs("field3name") & "</td><td>" & rs("field4name") & "</td><td>" & rs("field5name") & "</td><td></tr>"
Loop
rs.Close
conn.Close
%>
</table>
</body>
</html>
Main Topics
Browse All Topics





by: sciber_dudePosted on 2004-04-14 at 14:50:43ID: 10828174
Issues u need to identify:-
com/webtec h/052799-1 .shtml
1. Single word searches / multiple word searches / phrase searches
2. Single / multiple column searches
3. How large is the database? If so an index table would be a good idea.
Here is a tutorial that searches each word in the search query against one column.
http://www.4guysfromrolla.
This tutorial explains how you search one column. you could change the WHERE clause of the SQL statement to ensure that it searches multiple columns.
:) SD