26 lines
435 B
PHP
26 lines
435 B
PHP
<?php
|
|
|
|
include 'koneksi.php';
|
|
|
|
$result = mysqli_query($conn, "
|
|
SELECT id, nama_ibadah
|
|
FROM tabel_ibadah
|
|
ORDER BY id
|
|
");
|
|
|
|
echo "<table border='1' cellpadding='8'>";
|
|
echo "<tr>
|
|
<th>ID</th>
|
|
<th>Nama Ibadah</th>
|
|
</tr>";
|
|
|
|
while ($row = mysqli_fetch_assoc($result)) {
|
|
|
|
echo "<tr>";
|
|
echo "<td>".$row['id']."</td>";
|
|
echo "<td>".$row['nama_ibadah']."</td>";
|
|
echo "</tr>";
|
|
}
|
|
|
|
echo "</table>";
|
|
?>
|