Visa ett inlägg
Oläst 2006-12-10, 12:41 #4
Netikett Netikett är inte uppkopplad
Flitig postare
 
Reg.datum: Nov 2004
Inlägg: 425
Netikett Netikett är inte uppkopplad
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.
Netikett är inte uppkopplad   Svara med citatSvara med citat