Suppose, i am connect to mysql database using mysql_coni(), so that now i am try to connect IBM SQL Database which provide by IBM Bluemix.
Which function or which correct way used to connect PHP With IBM SQL Database within bluemix.
Suppose, i am connect to mysql database using mysql_coni(), so that now i am try to connect IBM SQL Database which provide by IBM Bluemix.
Which function or which correct way used to connect PHP With IBM SQL Database within bluemix.
To connect to the SQLDB service in Bluemix you can use db2_connect. You should use a connection string instead of separate database/username/pw/etc. parameters because it is a remote DB service
Following an example of parsing VCAP_SERVICES to connect to the SQLDB service in PHP:
Please see the accepted answer in this post : https://developer.ibm.com/answers/questions/20036/how-to-compile-php-with-db2-support-in-bluemix/