當我運行它顯示此錯誤消息的腳本:PHP警告消息
警告:mysqli_select_db()期望的是2個參數,1 C中給出:\ wamp64 \ WWW \ VehicleWorkshop \ dbconnection.php上線9
的dbconnection.php中的代碼如下
<?php
$con = mysqli_connect("localhost","root","technology");
if (!$con)
{
die('Could not connect: ' . mysqli_error());
}
mysqli_select_db("eworkshop");
?>
請幫我解決這個問題。
參考語法:http://php.net/manual/en/mysqli.select-db.php –
的可能的複製[警告:mysqli \ _select \ _db()期望恰好2個參數,1在C:given]中給出(http://stackoverflow.com/questions/26595886/warning-mysqli-select-db-expects-exactly-2-parameters- 1-given-in-c) –