RE: [PHP-DB] odbc and ibm-db2

From: Date: Fri, 23 Mar 2001 13:46:28 +0000
Subject: RE: [PHP-DB] odbc and ibm-db2
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-7717@lists.php.net to get a copy of this message
Sergio, The error indicates PHP cannot find your odbc.ini file that contains your DSNs. Try passing its location in: putenv("path/to/your/pesky/odbc.ini"); HTH Best regards, Andrew -------------------------------------- Andrew Hill - OpenLink Software Director Technology Evangelism eBusiness Infrastructure Technology http://www.openlinksw.com > -----Original Message----- > From: srua@pulidor.esware.com [mailto:srua@pulidor.esware.com]On Behalf > Of Sergio Rua > Sent: Friday, March 23, 2001 6:15 AM > To: php-db@lists.php.net > Subject: [PHP-DB] odbc and ibm-db2 > > > Hello, > > I'm trying to use php with ibm-db2 but I obtain this error: > > <b>Warning</b>: SQL error: [unixODBC][Driver Manager]Data source name not > found, and no default driver specified, SQL state IM002 in SQLConnect in > <b>login.php</b> on line <b>11</b><br> > > > This is my code: > > $dsn="MYDB"; > $user="my_user"; > $pass="my_password"; > > $resp=odbc_connect($dsn,$user,$pass); > > > Please, Cc me. > > Un saludo, > > Sergio Rua <srua@esware.com> > Departamento de Desarrollo > http://www.esware.com/ddd > > > -- > 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 (#7717) next »