Postingan lainnya
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result
Tolong
koneksi.php nya: $koneksi = mysqli_connect('localhost','root','','sewadvd2');
if (mysqli_connect_errno()){ echo "Failed to connect to MySQL: " . mysqli_connect_error();}
GET :
0
3 Jawaban:
Coba $sql Ganti Jadi Begini
$sql = "SELECT * FROM film WHERE ID_FILM=".$id_flm;
0
Tanggapan
tetep ga bisa gan
while($d = mysqli_fetch_array($result{'ID_FILM'} ){
1
Intinya query agan salah gan makanya muncul warning : Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result.
Coba cek lagi baris ini : <pre> $sql = "SELECT * FROM film WHERE ID_FILM='$id_flm'"; </pre>
Mungkin agan salah panggil nama_tabel atau nama_field.
1