Postingan lainnya
error mysqli_query() expects at least 2 parameters
Ada error di aplikasi saya Warning: mysqli_query() expects at least 2 parameters, 1 given in C:\xampp\htdocs\PI\TampGallery.php on line 70 Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in C:\xampp\htdocs\PI\TampGallery.php on line 71 Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in C:\xampp\htdocs\PI\TampGallery.php on line 73
Tanggapan
tolong ikuti aturanmain, baca cara mmebuat judul pertanyaan yang benar. dan mengatur kode agar mudah dibaca
2 Jawaban:
Jawaban Terpilih
harus lebih teliti. fungsi mysqli_query punya 2 parameter.
contoh:
<pre> $link = mysqli_connect("localhost", "my_user", "my_password", "world"); mysqli_query($link, "select * from gallery"); </pre>