Postingan lainnya
Fatal error: Uncaught ArgumentCountError: mysqli_select_db() expects exactly 2 arguments,
<?php
$server = "localhost";
$username = "root";
$password = "";
$database = "login";
$konek = mysqli_connect($server,$username,$password);
if($konek){
$pilih = mysqli_select_db($database);
}else{
echo mysqli_error();
}
?>
0
1 Jawaban:
<div>Sepertinya butuh 2 parameter:</div><pre>$pilih = mysqli_select_db($konek, $database);</pre><div><br>Sudah pernah dibahas disini <a href="https://sekolahkoding.com/forum/warning-mysqli-select-db-expects-exactly-2-parameters">https://sekolahkoding.com/forum/warning-mysqli-select-db-expects-exactly-2-parameters</a></div>
0