JANLEE
08-25-2005, 12:37 AM
Hi, again.
I have another script which the script refuses this local:
Server.MapPath("/_private/lexicum.mdb")
it wants for a local path: Server.MapPath("lexicum.mdb")
This is the head of the script. I want to know WHY it does this? and how I do for it understand that databases path is :Server.MapPath("/_private/lexicum.mdb")
<%
intPage = Request("page")
If isNumeric(intPage) = False Or intPage < 1 Then
intPage = 1
End If
Dim SqlJunk
Dim strDB, sSQL, dbGlobalWeb,con
dbGlobalWeb.open = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("/_private/lexicum.mdb")
'Set dbGlobalWeb = Server.CreateObject("ADODB.Connection")
'dbGlobalWeb.Open("Lexicum")
'Dim dbGlobalWeb
Set dbGlobalWeb = CreateObject("ADODB.Connection")
' con.Open strDB
dbGlobalWeb.Open strdb
'dbGlobalWeb
'dbGlobalWeb.Open("Lexicum")
SqlJunk = "SELECT * FROM ec" %>
Thank you
JL
I have another script which the script refuses this local:
Server.MapPath("/_private/lexicum.mdb")
it wants for a local path: Server.MapPath("lexicum.mdb")
This is the head of the script. I want to know WHY it does this? and how I do for it understand that databases path is :Server.MapPath("/_private/lexicum.mdb")
<%
intPage = Request("page")
If isNumeric(intPage) = False Or intPage < 1 Then
intPage = 1
End If
Dim SqlJunk
Dim strDB, sSQL, dbGlobalWeb,con
dbGlobalWeb.open = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("/_private/lexicum.mdb")
'Set dbGlobalWeb = Server.CreateObject("ADODB.Connection")
'dbGlobalWeb.Open("Lexicum")
'Dim dbGlobalWeb
Set dbGlobalWeb = CreateObject("ADODB.Connection")
' con.Open strDB
dbGlobalWeb.Open strdb
'dbGlobalWeb
'dbGlobalWeb.Open("Lexicum")
SqlJunk = "SELECT * FROM ec" %>
Thank you
JL