mysqli_select_db() expects parameter 1 to be mysqli, array given [duplicate]
问题 This question already has an answer here : Warning: mysqli_select_db() expects exactly 2 parameters, 1 given in C:\ [duplicate] (1 answer) Closed 3 years ago . i need to to convert my project from MySQL to MySQLIi ,but i have problem in config file, please what is the error in my code? <?PHP $Db = array ( "hostname"=>"localhost", "dbname"=>"prstitodb", "dbuser"=>"root", "dbpass"=>"", ); $Dbconnect = mysqli_connect($Db['hostname'],$Db['dbuser'],$Db['dbpass']) or die(mysqli_error()); $DbSelect