RE: [PHP-DB] ODBC Woes

From: Date: Tue, 28 Aug 2001 20:09:05 +0000
Subject: RE: [PHP-DB] ODBC Woes
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-11922@lists.php.net to get a copy of this message
Nope, it depends on the driver manager you are using, and I believe the first example has been deprecated in nearly all cases. Why do you need to use the first? Just use variables: $dsn="dsnname"; $uid="user"; $pwd="password"; odbc_conenct($dsn, $uid, $pwd) Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access & Data Integration Technology Providers > -----Original Message----- > From: Jonathan Hilgeman [mailto:jhilgeman@ecx.com] > Sent: Tuesday, August 28, 2001 4:05 PM > To: php-db@lists.php.net > Subject: [PHP-DB] ODBC Woes > > > Okay, all I need to know is this: > Some people say that they can only connect with: > odbc_connect("DSN=Datasource;UID=username;PWD=password","",""); > > Others say that doesn't work, and that they can only connect with: > odbc_connect("Datasource","username","password"); > > I am confused. I can use the second example (I'm on PHP 4.0.3), > but not hte > first, although I need to use the first example. Is there some sort of > switch that lets you decide what format you can follow? > > - Jonathan > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.db (#11922) next »