Example of mssql_connect that works with SQL Server 2005?
Posted by David Haynes on 11/13/05 17:03
I can't seem to get the magic to work to connect to SQL Server via
mssql_connect(). I can get odbc_connect to work just fine, but not
mssql_connect. Could someone please post an example of how the hostname
field should be set up?
The SQL Server is on the same system as my php session.
Obviously, I am missing something because mssql_connect('localhost', '',
'') comes back with 'connection refused'.