[Cialug] php/mssql connection issues

Laith Preston laith at prestonfam.org
Mon Oct 30 16:51:26 CST 2006


I am having a problem connecting to an MSSQL server from php on a IIS 
installation. I know... I know... project requirements.

anyway
If I connect to an named DSN using the odbc connection functions it 
works, but if I try to connect to it using the mssql functions it fails, 
I am uncertain if the client will allow for use of the odbc

$db  =  mssql_connect($db_host,$db_user,$db_pass);

$db2    = odbc_connect($db_dsn,$db_user,$db_pass);


any thoughts?

Thanks
Lathrop



More information about the Cialug mailing list