Hello,
I am trying to connect to HANA DB with PHP via an ODBC connection in WAMP.
Created User DSN as well as System DSN in Control Panel > Administrative Tools > Data Sources, its connecting successfully.
I am using following PHP code to achieve connection but failed to do so
$conn = odbc_connect("HANA_CONNECT","SYSTEM","manager");
// odbc_connect("HANA_CONNECT","SYSTEM","manager", SQL_CUR_USE_ODBC); // Used this as well
if (!($conn)) {
echo "<p>Connection to DB via ODBC failed: ";
// echo odbc_errormsg ($conn );
echo "</p>\n";
}
I got following error
I have enabled odbc setting in php.ini.
Feedback appreciated