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 not be
> loaded, SQL state IM003 in
> SQLConnect in /usr/local/apache/htdocs/odbctest.php on line 16
My suspicions come from the test of this error - "could not be loaded" -
so it's possible that your are specifying an invalid file, or there are
permission issues on that file, etc.. either way, the contents of your
odbc.ini might help.
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php