Mikael, the following steps should get you started:

>From Windows, go to control panels->administrative tools->data sources
(ODBC)

Click on the System Data Source Name (DSN) tab

Click Add and select Microsoft Access Database from the list (.mdb)

Name your DSN and select the access file you are making the ODBConnection to

now, you have that NAME to reference your database with PHP's built in ODBC
functionality. For instance odbc_connect( "Your_DSN_Name_Here", "user",
"password" ) will open the connection to your database... For further help
you should consider purchasing Wrox's Begining PHP4:
http://www.amazon.com/exec/obidos/ASIN/1861003730/minnirokcom

Good Luck,

Cam

"Mikael Syska" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Check the functions regarding ODBC support. You will need to add the
> > database in the ODBC manager and after that, it is transparent like
> > any other DSN database.
>
>
> How do i do that, I use Windows2000 and i dont know how to do that, i can
> find the OBDC settings but dont know what to change....
>
> And I get this failure when I tries to connect to my "data.mdb"
>
> Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name not
> found and no default driver specified, SQL state IM002 in SQLConnect in c:
> \apache\htdocs\access\index.php on line 18



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to