Flitig postare
|
|
Reg.datum: Nov 2004
Inlägg: 425
|
|
Flitig postare
Reg.datum: Nov 2004
Inlägg: 425
|
Använd denna lösning och lägg databasen utanför rooten.
Set Connection = Server.CreateObject("ADODB.Connection") ' Öppna databasen
Connection.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("../data/access.mdb")
Set RS = Connection.Execute("SELECT * FROM Settings")
if RS.eof then
response.write "Fel!"
else
response.write ""& RS("företagsnamn") &"
"
end if
Rs.Close
Connection.Close : Set Connection = Nothing
Bara att prova sig fram.
|