|
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 ->
|