#127804 - 2004-10-13 11:08 AM
connecting to external database
|
Viggen
Starting to like KiXtart
Registered: 2002-03-22
Posts: 110
|
Hi All!
I'm trying to connect to an Access-database with the help of DBCommand()
This line works: Code:
$dbconn = 'DRIVER={Microsoft Access Driver (*.mdb)}; UID=; PWD=; DBQ=c:\database.mdb' But this don't: Code:
$dbconn = 'DRIVER={Microsoft Access Driver (*.mdb)}; UID=; PWD=; DBQ=http://www.someadress.com/database.mdb'
If I don't use http:// I get "can't connect to (unknown)", and if I use it I get "File unknown". If I write the adress in IE I get a save-prompt, so the file exists.
I'm guessing it's the formating of the adress, but I can't figure it out. 
|
|
Top
|
|
|
|
#127812 - 2004-10-14 09:55 AM
Re: connecting to external database
|
Viggen
Starting to like KiXtart
Registered: 2002-03-22
Posts: 110
|
Thanks for the answers. Personally I'd like to use mySQL, but "Da Man" were I work thought that since we have an access-database that's accessible from the "outside" it should be possible to read some values from it.
Now I have to convince him that my way is the right way 
Thanks again
|
|
Top
|
|
|
|
#127815 - 2004-10-15 08:06 AM
Re: connecting to external database
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
If you happen to forget how these are formulated for what kind of database you are connecting to, you should not miss this page..
http://www.connectionstrings.com/
Kent
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
1 registered
(mole)
and 1300 anonymous users online.
|
|
|