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
*Beware click the link!
NONE
Kurang tanda titik koma itu kak dibagian name
Reply
Iya gw baru liat kurang tanda titik koma kwkw
Reply