鏈接mysql用mysql_connect不能鏈接

用mysqli_connect就能夠解決。php

mysqli_array()有連個參數,第一個是鏈接mysql名。mysql

php遇到這個警告Warning: Use of undefined constant title - assumed 'title' (this will throw an Error in a future version of PHP)能夠經過error_reporting(0);解決。sql

主要的問題是數據庫中括號[]須要加引號。數據庫

遇到這樣的錯誤Fatal error: Uncaught Error: Call to undefined function mysql_connect()this

解決以下spa

1.mysql沒有正常鏈接it

2.若是mysql正常的話仍是鏈接錯誤,把mysql_connect()換成mysqli_connect()io

相關文章
相關標籤/搜索