Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php include('config.php'); ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>List Pendaftar</title>
- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
- </head>
- <body>
- <header>
- </center><h3>List Pendaftar</h3></center>
- </header>
- <table border="1" class="table">
- <thead class="thead-dark">
- <th>NO</th>
- <th>Nama</th>
- <th>Alamat</th>
- <th>Jenis Kelamin</th>
- <th>Agama</th>
- <th>Sekolah Asal</th>
- <th colspan="2">Aksi</th>
- </thead>
- <tbody>
- <?php
- $sql = "SELECT * FROM calon_siswa";
- $query = mysqli_query($db_connection, $sql);
- while ($siswa = mysqli_fetch_array($query)) {
- echo "<tr>";
- echo "<td>".$siswa['id']."</td>";
- echo "<td>".$siswa['nama']."</td>";
- echo "<td>".$siswa['alamat']."</td>";
- echo "<td>".$siswa['jenis_kelamin']."</td>";
- echo "<td>".$siswa['agama']."</td>";
- echo "<td>".$siswa['sekolah_asal']."</td>";
- echo "<td>"."<a href='form-edit.php?id=".$siswa['id']."'>Edit</a>"."</td>";
- echo "<td>"."<a href='hapus.php?id=".$siswa['id']."'>Hapus</a>"."</td>";
- echo "</tr>";
- }
- ?>
- </tbody>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement