问答详情
源自:6-1 TestLink安装部署

测试php连接mysql时,抱错了

报错信息如下:


Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /usr/local/nginx/html/db.php:2 Stack trace: #0 {main} thrown in /usr/local/nginx/html/db.php on line 2

提问者:慕UI1336016 2019-03-16 18:32

个回答

  • Nico_Wang
    2019-04-11 09:45:22

    mysql_connect()函数在php5.0之后就不支持了,改成mysqli_connect()