建立连接的同时不能打开数据库
我如果这样$mysqli = new mysqli('localhost','root','root','test');就会有错误信息
Warning: mysqli::mysqli() [mysqli.mysqli]: (42000/1049): Unknown database 'test' in C:\Users\Administrator\PhpstormProjects\Char\mysqli_connect_1.php on line 13
Connect Error:Unknown database 'test'
这样去就没问题$mysqli = new mysqli('localhost','root','root');
$mysqli->select_db('test');
求大神解答