I have a User DSN configured in Windows ODBC:
Name Driver
testdb FairCom c-tree ODBC Driver
$user = "";
$pass = "";
$dsn = "testdb";
$cx = odbc_connect($dsn,$user,$pass);
if($cx === false) {
echo "<br/>failure<br/><br/>";
echo odbc_errormsg();
}
I always get this error:
failure
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
Wondering what's the correct way to connect to that database in PHP. Thanks!