1. 程式人生 > >連線mysql用mysql_connect不能連線

連線mysql用mysql_connect不能連線

用mysqli_connect就可以解決。

mysqli_array()有連個引數,第一個是連線mysql名。

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

主要的問題是資料庫中括號[]需要加引號。