Code: Select all
$DBNAME = "sluggo";
$DBUSER = "xxxx";
$DBPASSWD = "xxxxx";
$CONNECTION = odbc_connect ($DBNAME, $DBUSER, $DBPASSWD);
The database is a DB2 database in a Linux server. Connecting from the ODBC screen "CLI/ODBC Setting - sluggo" works fine, but I am getting a FALSE value for $CONNECTION.
Locally I am using Wamp; I put "php_ibm_db2.dll" in the ext folder of php and in the php.ini file I set "extension=php_ibm_db2.dll".
Your help will be greatly appreciated.