I am trying a DSN-less connection
$DBNAME = 'DRIVER={IBM DB2 ODBC DRIVER};SERVER=sluggo.draper.com:5030;DATABASE=xxxx;';
$CONNECTION = odbc_connect ($DBNAME, $DBUSER, $DBPASSWD);
but I am getting a FALSE value.
Your help will be greatly appreciated.
Can't access a DB2 database
Moderator: General Moderators
-
handro1104
- Forum Newbie
- Posts: 2
- Joined: Tue Feb 26, 2013 2:01 pm
Can't access a DB2 database
Your help will be greatly appreciated,
Alejandro Barrero
Alejandro Barrero
- mecha_godzilla
- Forum Contributor
- Posts: 375
- Joined: Wed Apr 14, 2010 4:45 pm
- Location: UK
Re: Can't access a DB2 database
Hi,
The IBM site would probably be a good place to start if you need some working examples:
http://www.ibm.com/developerworks/opens ... index.html
http://www.ibm.com/developerworks/data/ ... scott.html
PHP also has in-built functions for working with DB2 databases provided you can install the DB2 extension on your system:
http://www.php.net/manual/en/ibm-db2.requirements.php
http://www.php.net/manual/en/ibm-db2.installation.php
http://php.net/manual/en/ref.ibm-db2.php
HTH,
Mecha Godzilla
The IBM site would probably be a good place to start if you need some working examples:
http://www.ibm.com/developerworks/opens ... index.html
http://www.ibm.com/developerworks/data/ ... scott.html
PHP also has in-built functions for working with DB2 databases provided you can install the DB2 extension on your system:
http://www.php.net/manual/en/ibm-db2.requirements.php
http://www.php.net/manual/en/ibm-db2.installation.php
http://php.net/manual/en/ref.ibm-db2.php
HTH,
Mecha Godzilla