“No database selected” error even after a db is selected

前端 未结 6 769
再見小時候
再見小時候 2021-01-19 02:02

I have selected the database but for some weird reason it still says that it is not selected.

Connection lines:

$location = \"localhost\";
$user = \"         


        
6条回答
  •  时光取名叫无心
    2021-01-19 03:02

    Make sure your code isn't inserted into classes and stuff, if it's just presented as is, then perhaps 'database' isn't valid, double check your values and try making it an external variable.

提交回复
热议问题