Please support our sponsors
7/26/00
 Quick Links :
home| forum | whats new | advertise | contact us




Overview
Access Database
Indexing using HTTP protocol
Indexing using FilySystemObject
Deleting URLs from Database
HTML Search Engine Form
Searching Records in the Database
Include File
Conclusion

WantJava.com


Please support our sponsors

Creating 'editme.asp' Include File :

Create a new ASP page and name it as 'editme.asp'. Copy paste the following code into it :

 <%
   ' Path to Database
   strDB = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & _
         Server.MapPath("directory.mdb")
 %>

Very simple to understand. strDB contains the database string required to connect to the database. By default 'directory.mdb' will be present in the same directory where you are keeping other Search Engine files. If you want to put 'directory.mdb' database else where then you should change the location to database in 'editme.asp' page as well e.g. if you change database path to http://www.yoursite.com/personal/db/directory.mdb then you should put the following code in place of the above :

 <%
   ' Path to Database
   strDB = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & _
         Server.MapPath("/personal/db/directory.mdb")
 %>

We summarize what we did on the next page and then end this tutorial there.



Next -> 




Please support our sponsors

© 1999-2000 Faisal Khan, All rights reserved