且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

未定义的函数mysql_connect()

更新时间:2023-01-25 14:17:32

好吧,这是您的机会!看来 PDO 已经准备就绪;改用它.

Well, this is your chance! It looks like PDO is ready; use that instead.

尝试检查是否正在加载PHP MySQL扩展模块:

Try checking to see if the PHP MySQL extension module is being loaded:

<?php
    phpinfo();
?>

如果不存在,请将以下内容添加到php.ini文件:

If it's not there, add the following to the php.ini file:

extension=php_mysql.dll