erorr mysqli_fetch_array

matara · Jun 5, 2014
mau tanya kok erorr ya kode saya ada tulisan seperti ini Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in C:\xampp\htdocs\tamu\tampil_tamu_user.php on line 14, mohon bantuan nya mas :D
<h3>Data Tamu</h3>
<?php
$konek= mysqli_connect ("localhost","root","","latihan");
$tampil = "SELECT * FORM tamu ORDER BY id_tamu";
$hasil = mysqli_query ($konek,$tampil);
while($data=mysqli_fetch_array ($hasil)){
	echo "Nama: $data[nama] <br>";
	echo "E-mail: $data[email] <br>";
	echo "Pesan: $data[pesan] <br><hr>";
}
?>
Silahkan login untuk menjawab!
0
Loading...
Kurosaki · Jun 14, 2014 · 0 Suka · 0 Tidak Suka
Coba cek type data di tabel mysql Anda...