Yep. Tried ODBC too. Still no joy.
This is the error I get in ODBC.
I've tried both of these connection statements.
$cnx = odbc_connect("AFMQR","","");
OR
$cnx =odbc_connect("DSN=AFMQR;UID=admin;PWD=password","","");
Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect
Even though I created a System DSN and a User DSN which point to our sql server and test successfully.