Re: Re: odbc_connect
| From: | Gonzalo Vera | Date: | Thu, 31 Aug 2000 14:32:10 +0000 |
| Subject: | Re: Re: odbc_connect | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-2346@lists.php.net to get a copy of this message | ||
> What do I use for the DSN? I have tried the dbname I also tired the
> same DSN that the asp code uses (below):
> $conn=odbc_connect("DRIVER={Microsoft Access Driver
> (*.mdb)};DBQ=c:\inetpub\wwwroot\phpodbc\ghs.mdb","inet","inet");
I don't know if this works, but it certainly is cleaner if you go to
ODBC configuration in the control panel and register a DSN ("user" if
using Win95/98, "system" on NT/2000). Then just use that name in the
odbc_connect, like:
> $conn=odbc_connect("alumni","inet","inet");
The DSN you register in the control panel ODBC applet will have all
the information needed for the connecton to be made, so you only need
to specify that name.
Gonzalo.