The MSSQL extension is enabled by adding extension=php_mssql.dll to php.ini. To get these functions to work, you have to compile PHP with --with-mssql[=DIR], where DIR is the FreeTDS install prefix. And FreeTDS should be compiled using --enable-msdblib.

解决方案 »

  1.   

    我的php.ini中有extension=php_mssql.dll,根本不用加的,你所说的也没有找到,不知道到底是怎么做的?
      

  2.   

    早就去掉了,不好用的。就是没有mssql_connect.
      

  3.   

    1、function mssql_count()
    {
    php_mssql.dll; // 要这行干什么?
    $conn = mssql_connect("cary", "liwei", "210124810623");2、至少安装sql server客户端
    3、去掉php.ini中extension=php_mssql.dll前的分号
    4、观察web服务启动时的报错情况
      

  4.   

    本来是dl('php_mssql.dll),但是在浏览时却出现:
    Warning: dl(): Not supported in multithreaded Web servers - use extension statements in your php.ini in C:\Inetpub\wwwroot\database.php on line 4
    当我把dl('')去掉后就没有这个错误了。
    服务器启动时没有出现错误。
      

  5.   

    请确定:你只一个配置正确的php.ini  
     
    要么只有php4/php.ini,要么只有winnt/php.ini!