Warning: mssql_connect () [function. mssql-connect]:. Warning: mssql_connect () [function. mssql-connect .? Php Tutorial $ conmssql_connect (lo
Warning: mssql_connect () [function. mssql-connect]:
I did this. make sure that mssql is a normal user name and password, but the following is not acceptable.
$ Con = mssql_connect ("localhost", "sa", "123456") or die ('error ');
?>
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 my solutions,
The system is:
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.
Http://www.bkjia.com/PHPjc/632354.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/632354.htmlTechArticlewarning: mssql_connect () [function. mssql-connect. ? Php Tutorial $ con = mssql_connect (lo...