Error message: warning: mssql_connect () [functionmssql-connect]: unabletoconnecttoserver: $ saind: php2phponline11error
Error message:Warning: mssql_connect () [function. mssql-connect]: unable to connect to server: $ sa in d: php2.php on line 11 error
Let's take a look at the solution,System: win2003 + mssql2000 + php5.23
Implementation method:Is there any ntwdblib. dll file in the php directory? Ntwdblib. dll is the client connection Library. if you check the version number, it will usually be 7.0. this can only be connected to mssq 7.0, in order to be the same as the tutorial version of our current database, we can set ntwdblib under mssql. copy the dll to the directory where your php is located and replace the 7.0. restart iis.
If your mssql connection is faulty, you can use the built-in function mssql_get_last_message () in php to obtain the error message.