Daftar dan Belajar Sekarang!

Eror edit data

foto KokoBandicot084
1 Kontribusi 0 Coto
2 bulan yang lalu
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++; }
  • kurang faham bisa di perjelas? - abubakar

Jawaban
foto ridwantanjung
27 Kontribusi 11 Coto
2 bulan yang lalu
kurang jelas pertanyaanya, tpi sepertinya salah syntax query nya coba ini
$sql ="SELECT * FROM tblusers where id = ".$userID;


Login untuk diksusi di forum sekolah koding