Re: [PHP-DB] odbc connect problem

2002-08-13 Thread salamander
Hi Chip, Looks okay at first brush - I suspect your odbc.ini DSN config. Have you been able to test your DSN outside the PHP environment? e.g with the odbctest app that comes with iODBC? Can you post your odbc.ini / DSN info? > Warning: SQL error: [iODBC][Driver Manager]Specified driver could

Re: [PHP-DB] odbc connect problem

2002-08-12 Thread chip . wiegand
salamander <[EMAIL PROTECTED]> wrote on 08/09/2002 04:31:35 PM: > Chip, > I wonder if you set the ODBCINI environment variable with the putenv()? Yep, they are there and I am getting this error when attempting to load the web page - Warning: SQL error: [iODBC][Driver Manager]Specified driver

Re: [PHP-DB] odbc connect problem

2002-08-09 Thread salamander
Chip, I wonder if you set the ODBCINI environment variable with the putenv()? If you could show the code in your odbctest.php file that would be helpful. Actually, I'll be traveling to Linuxworld on Monday - anyone wants to chat about ODBC who will be there feel free to drop me an email. Chee

Re: [PHP-DB] odbc connect problem

2002-08-09 Thread chip . wiegand
Thanks, that fixed that part of it, now here's the newest error message: Warning: SQL error: [iODBC][Driver Manager]Specified driver could not be loaded, SQL state IM003 in SQLConnect in /usr/local/apache/htdocs/odbctest.php on line 7 Fatal error: Call to undefined function: error_handler() in

Re: [PHP-DB] odbc connect problem

2002-08-09 Thread salamander
Chip, You are going to have to rebuild the dso with the options you specified before - try cutting and pasting the configure that shows up in your phpinfo() to make it easier. Also, you can get the necessary iODBC header files at www.iodbc.org, as well as find a HOWTO there for compiling PHP/

Re: [PHP-DB] odbc connect problem

2002-08-09 Thread chip . wiegand
Yeah, you're right, I see I need to add --with-iodbc. Now another question - when I recompile to add this support, do I have to add all the other options that I originally had listed? Or can I add just this one and everything else will be left the same? What about php.ini? Will it be changed? --

Re: [PHP-DB] odbc connect problem

2002-08-09 Thread Chip Atkinson
It looks like you didn't build php with odbc support. Try putting in a call to phpinfo (); and see if it says that odbc support is compiled in. (Another) Chip On Fri, 9 Aug 2002 [EMAIL PROTECTED] wrote: > I am attempting for the first time, to connect from freebsd/mysql/php box > to a NT box ru

[PHP-DB] odbc connect problem

2002-08-09 Thread chip . wiegand
I am attempting for the first time, to connect from freebsd/mysql/php box to a NT box running MAS200. I am able to connect from another NT workstation with Access and download data, so I am trying from FreeBSD now. When I run the code below I get error: Fatal error: Call to undefined function: od