[Cialug] odbc_connect

L. V. Lammert lvl at omnitec.net
Wed Apr 26 17:07:10 CDT 2017


On Wed, 26 Apr 2017, Adam Hill wrote:

> What does odbc_connect do?  error out?
>
Yep;

$ php testVAM_odbc.php
PHP Warning:  odbc_connect(): SQL error: [unixODBC][Driver Manager]Data
source name not found, and no default driver specified, SQL state IM002 in
SQLConnect in /home/lvl/test/testVAM_odbc.php on line 9
FAIL!

> Have you tried this function to list data sources
> http://php.net/manual/en/function.odbc-data-source.php ?  which I believe
> should match your odbc.ini if it were reading from there.
>
Unfortunately, need odbc_connect to get a connect_id, so can't run that.

	Lee


More information about the Cialug mailing list