測(cè)試php連接mysql時(shí),抱錯(cuò)了
報(bào)錯(cuò)信息如下:
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
報(bào)錯(cuò)信息如下:
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
2019-03-16
舉報(bào)
2019-04-11
mysql_connect()函數(shù)在php5.0之后就不支持了,改成mysqli_connect()