错误信息:
PHP Fatal error:  Call to undefined function mysql_select()

解决方案 »

  1.   

    PHP Version 5.4.8
    System Windows NT G30953 5.1 build 2600 (Windows XP Professional Service Pack 3) i586
    Build Date Oct 16 2012 22:26:16
    Compiler MSVC9 (Visual C++ 2008)
    Architecture x86
    Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--disable-zts" "--disable-isapi" "--disable-nsapi" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared" "--with-enchant=shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--with-mcrypt=static" "--disable-static-analyze" "--with-pgo"
    Server API CGI/FastCGI
    Virtual Directory Support disabled
    Configuration File (php.ini) Path C:\WINDOWS
    Loaded Configuration File F:\PHP5\php.ini
    Scan this dir for additional .ini files (none)
    Additional .ini files parsed (none)
    PHP API 20100412
    PHP Extension 20100525
    Zend Extension 220100525
    Zend Extension Build API220100525,NTS,VC9
    PHP Extension Build API20100525,NTS,VC9
    Debug Build no
    Thread Safety disabled
    Zend Signal Handling disabled
    Zend Memory Manager enabled
    Zend Multibyte Support provided by mbstring
    IPv6 Support enabled
    DTrace Support disabled
    Registered PHP Streams php, file, glob, data, http, ftp, zip, compress.zlib, phar
    Registered Stream Socket Transports tcp, udp
    Registered Stream Filters convert.iconv.*, mcrypt.*, mdecrypt.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, zlib.*
      

  2.   

    cgi-fcgiDirective Local Value Master Value
    cgi.check_shebang_line 1 1
    cgi.discard_path 0 0
    cgi.fix_pathinfo 1 1
    cgi.force_redirect 0 0
    cgi.nph 0 0
    cgi.redirect_status_env no value no value
    cgi.rfc2616_headers 0 0
    fastcgi.impersonate 1 1
    fastcgi.logging 1 1
      

  3.   

    mysqlMySQL Support enabled
    Active Persistent Links 0
    Active Links 0
    Client API version mysqlnd 5.0.10 - 20111026 - $Id: b0b3b15c693b7f6aeb3aa66b646fee339f175e39 $Directive Local Value Master Value
    mysql.allow_local_infile On On
    mysql.allow_persistent On On
    mysql.connect_timeout 60 60
    mysql.default_host 127.0.0.1 127.0.0.1
    mysql.default_password root root
    mysql.default_port 3306 3306
    mysql.default_socket no value no value
    mysql.default_user root root
    mysql.max_links Unlimited Unlimited
    mysql.max_persistent Unlimited Unlimited
    mysql.trace_mode Off OffmysqliMysqlI Support enabled
    Client API library version mysqlnd 5.0.10 - 20111026 - $Id: b0b3b15c693b7f6aeb3aa66b646fee339f175e39 $
    Active Persistent Links 0
    Inactive Persistent Links 0
    Active Links 0Directive Local Value Master Value
    mysqli.allow_local_infile On On
    mysqli.allow_persistent On On
    mysqli.default_host no value no value
    mysqli.default_port 3306 3306
    mysqli.default_pw no value no value
    mysqli.default_socket no value no value
    mysqli.default_user no value no value
    mysqli.max_links Unlimited Unlimited
    mysqli.max_persistent Unlimited Unlimited
    mysqli.reconnect Off Offmysqlndmysqlnd enabled
    Version mysqlnd 5.0.10 - 20111026 - $Id: b0b3b15c693b7f6aeb3aa66b646fee339f175e39 $
    Compression supported
    SSL supported
    Command buffer size 4096
    Read buffer size 32768
    Read timeout 31536000
    Collecting statistics Yes
    Collecting memory statistics Yes
    Tracing n/a
    Loaded plugins mysqlnd,example,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password
    API Extensions mysql,mysqli,pdo_mysql
      

  4.   

    本来就没有 mysql_select 函数,自然就要报错啦