lawang code

lawang Code


Tanyakan kode disini

kesalahan php

ditanyakan oleh rikzan 1 tahun yang lalu

(problemnya : " Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/u210769418/public_html/dasbor.php on line 12")

(code on line 12:"$jumlah09 = mysqli_num_rows($data109);") (semua kode saya:""

kode dalam php=" 1. 2. 3. include "header.php"; 4. include "db/koneksi.php"; 5. $data= mysqli_query($connect,"SELECT * FROM users WHERE username = '".$_SESSION['username']."'"); 6.$hasil= mysqli_fetch_array($data); 7.$id = $hasil['id']; 8.$username = $hasil['username']; 9.$balance = number_format($hasil['balance'],0,',','.'); 10.$level = $hasil['role']; 11.$data109= mysqli_query($connect,"SELECT * FROM orders WHERE user_id = '$id'"); 12.$jumlah09 = mysqli_num_rows($data109); 13.$data1009= mysqli_query($connect,"SELECT * FROM orderpulsa WHERE user_id = '$id'"); 14.$jumlah009 = mysqli_num_rows($data1009); 15.$totalorder = $jumlah09 + $jumlah009; "

Anda harus login terlebih dahulu untuk memberikan komentar

Recent Tag

X 6
X 49
X 14
X 10
X 1
X 5
X 4
X 13
X 10

Bantuan

Help

Feedback

Help