Update cek_tabel.php

This commit is contained in:
2026-06-10 13:51:41 +00:00
parent a0cd31c200
commit 5e7285b127
+17 -5
View File
@@ -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>";
?>