PHP and ODBC
| From: | fresler at adex-intl dot com | Date: | Wed, 16 Oct 2002 17:45:57 +0000 |
| Subject: | PHP and ODBC | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-8821@lists.php.net to get a copy of this message | ||
I am having troubles with ODBC. I can get it to compile and function
correctly, except I believe it is not using the drivers I want it to use.
I have install OpenLink's ODBC drivers on my Linux box. Therefore, my
configuration looks like this:
./configure --with-mysql --with-unixODBC=/usr/openlink/lib --with-apxs
Everything works fine and I can make ODBC calls. However, when I try to
connect, I get the following error:
Warning: SQL error: [unixODBC][Driver Manager]Data source name not found,
and no default driver specified, SQL state IM002 in SQLConnect
I have checked my OpenLink ODBC settings, and everything seems to be set up
fine. Is the above error telling me that it is using the wrong driver?
Thanks for any help.
Floyd