Update cek_tabel.php
This commit is contained in:
+17
-5
@@ -2,13 +2,25 @@
|
||||
|
||||
include 'koneksi.php';
|
||||
|
||||
$result = mysqli_query($conn, "SELECT * FROM tabel_ibadah");
|
||||
$result = mysqli_query($conn, "
|
||||
SELECT id, nama_ibadah
|
||||
FROM tabel_ibadah
|
||||
ORDER BY id
|
||||
");
|
||||
|
||||
echo "<h2>Data Rumah Ibadah</h2>";
|
||||
echo "<table border='1' cellpadding='8'>";
|
||||
echo "<tr>
|
||||
<th>ID</th>
|
||||
<th>Nama Ibadah</th>
|
||||
</tr>";
|
||||
|
||||
while ($row = mysqli_fetch_assoc($result)) {
|
||||
echo "<pre>";
|
||||
print_r($row);
|
||||
echo "</pre><hr>";
|
||||
|
||||
echo "<tr>";
|
||||
echo "<td>".$row['id']."</td>";
|
||||
echo "<td>".$row['nama_ibadah']."</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
|
||||
echo "</table>";
|
||||
?>
|
||||
Reference in New Issue
Block a user