Pemprograman
Casual
85

Php eror in line 9


  11-Sep-2020 20:47:17


Bang gw lagi belajar crud di php pas gw run eror di line 9 dah gw cek database bener,file koneksi.php udah bener juga,database juga udah terhubung tapi kok eror ya gak bisa nampilin data dari isi tabel database?

Bimbinganya bang 

<?php 

include "koneksi.php";

$query_mysql = mysql_query("SELECT * FROM user")or die(mysql_error());

$nomor = 1;

while($data = mysql_fetch_array($query_mysql)){

?>

<tr>

<td><?php echo $nomor++; ?></td>

<td><?php echo $data['name'] ?></td>

<td><?php echo $data['addres']; ?></td>

<td><?php echo $data['job']; ?></td>

  <td><?php echo $data['salary']; ?></td>

<td>

<a class="edit" href="edit.php?id=<?php echo $data['id']; ?>">Edit</a> |

<a class="hapus" href="del.php?id=<?php echo $data['id']; ?>">delete</a>

</td>

</tr>

<?php 


DISKUSI
11-Sep-2020 20:49:15

Kurang tanda titik koma itu kak dibagian name

Reply
11-Sep-2020 20:55:12

Iya gw baru liat kurang tanda titik koma kwkw

Reply

11-Sep-2020 20:53:51

Tutup loopingnya gak ada lo teliti lagi bagian ini

while($data = mysql_fetch_array($query_mysql)){

}

Itu lo kurang tutup } sama tutup php


Reply
11-Sep-2020 20:54:33

Bentar bang wa teliti dulu

Reply
11-Sep-2020 21:00:50

Dia lupa tutup phpnya itu

Reply

11-Sep-2020 20:54:45

Ngopi dulu bro

Reply

Lo copas ini aja 

<?php 

include "koneksi.php";

$query_mysql = mysql_query("SELECT * FROM user")or die(mysql_error());

$nomor = 1;

while($data = mysql_fetch_array($query_mysql)){

?>

<tr>

<td><?php echo $nomor++; ?></td>

<td><?php echo $data['name'];?></td>

<td><?php echo $data['addres']; ?></td>

<td><?php echo $data['job']; ?></td>

  <td><?php echo $data['salary']; ?></td>

<td>

<a class="edit" href="edit.php?id=<?php echo $data['id']; ?>">Edit</a> 

<a class="hapus" href="del.php?id=<?php echo $data['id']; ?>">delete</a>

</td>

</tr>

<?php } ?>

Lu teliti lagi lu gak konsentrasi bro banyak yang salah

Reply
11-Sep-2020 21:01:59
<?php

include "koneksi.php";

$query_mysql = mysql_query("SELECT * FROM user")or die(mysql_error());

$nomor = 1;

while($data = mysql_fetch_array($query_mysql)){

?>

<tr>

<td><?php echo $nomor++; ?></td>

<td><?php echo $data['name'];?></td>

<td><?php echo $data['addres']; ?></td>

<td><?php echo $data['job']; ?></td>

<td><?php echo $data['salary']; ?></td>

<td>

<a class="edit" href="edit.php?id=<?php echo $data['id']; ?>">Edit</a>

<a class="hapus" href="del.php?id=<?php echo $data['id']; ?>">delete</a>

</td>

</tr>

<?php } ?>

Gini bang?

Reply
11-Sep-2020 21:03:08

Lu coba bisa ga?

Copas aja komen gw

Reply

11-Sep-2020 21:00:08

Gmn udh kelar?

Reply

11-Sep-2020 21:02:14

<?php

include "koneksi.php";

$query_mysql = mysql_query("SELECT * FROM user")or die(mysql_error());

$nomor = 1;

while($data = mysql_fetch_array($query_mysql)){

?>

<tr>

<td><?php echo $nomor++; ?></td>

<td><?php echo $data['name'];?></td>

<td><?php echo $data['addres']; ?></td>

<td><?php echo $data['job']; ?></td>

<td><?php echo $data['salary']; ?></td>

<td>

<a class="edit" href="edit.php?id=<?php echo $data['id']; ?>">Edit</a>

<a class="hapus" href="del.php?id=<?php echo $data['id']; ?>">delete</a>

</td>

</tr>

<?php } ?>
Reply
11-Sep-2020 21:04:15

Bener tuh lo coba run lagi

Reply

11-Sep-2020 21:04:30

Dah bisa bang

Reply
11-Sep-2020 21:05:31

Sip klo dah bisa

Reply
11-Sep-2020 21:06:01

Lain kali lu cek lebih teliti bro 

Reply
11-Sep-2020 21:06:20

Namanya jga masih belajar bang

Reply
11-Sep-2020 21:06:42

Okee lanjut 

Reply
11-Sep-2020 22:47:46

Mantoel ๐Ÿ”ฅ

Reply

11-Sep-2020 21:15:48

Baru mau bantu jawab udah solve ternyata

Reply

11-Sep-2020 21:28:33

Tutup kurung sama php ?> bagian bawah 

Reply

11-Sep-2020 22:48:50

Ehem, btw butuh jasa buat web ?

Menggunakan php native, CI, heheh

Nb : Laravel, Vue, node js, etc sorry belum bisa๐Ÿ™๐Ÿป. Harga ? Email saya saja hehehe

Reply

Silahkan Login Untuk Komentar / Diskusi.
Login Disini
POSTING DISKUSI BARU
Diskusi Populer
Gps Tracker Seccodeid Free Too...
Member Seccodeid Bayu aji
Tidak Berkategori
900
92
Top

Mass Reverse IP Unlimited
Member Seccodeid ImamSy
Hacking
723
10
Top

Free Proxy List
Member Seccodeid Sandidi
Networking
662
3
Top

GHunt OSINT Tools - Investiga...
Member Seccodeid Sandidi
Tools Hacking
590
3
Top

Report McAfee Antivirus Hurrri...
Member Seccodeid Indrasp
Windows
583
93
Top

Diskusi Lainya
Subscribe

Subscribe sekarang untuk mendapatkan diskusi terbaru