Eror edit data

Warning: mysqli_connect() expects parameter 1 to be string, object given in C:\xampp\htdocs\admin\edit_data.php on line 15 Kodingnya seperti ini: <?php $userID = $_GET['uID']; include('includes/connection.php'); $sql ="SELECT * FROM tblusers where id = '$userID'"; $result = mysqli_query($koneksi,$sql); $num = mysqli_num_rows($result); $i = 0; while ($i < $num) { $autoid = mysqli_connect($result,$i,"id"); $user = mysqli_connect($result,$i,"Username"); $pass = mysqli_connect($result,$i,"Password"); $fn = mysqli_connect($result,$i,"Firstname"); $ln = mysqli_connect($result,$i,"Lastname"); $email = mysqli_connect($result,$i,"Email"); $i++; }
avatar KokoBandicot084

Ditanyakan oleh @KokoBandicot084

1 Kontribusi 0 Poin

Login untuk menanggapi


Jawaban

kurang jelas pertanyaanya, tpi sepertinya salah syntax query nya coba ini
 $sql ="SELECT * FROM tblusers where id = ".$userID; 
avatar ridwantanjung

Dijawab oleh @ridwantanjung

30 Kontribusi 13 Poin

Login untuk menanggapi


Login untuk gabung berdiskusi