Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'koneksi.php';
- ?>
- <table border="1"><h4>MAHASISWA</h4><button><a href="create.php">Tambah</a></button>
- <tr><th>NO</th><th>NIM</th><th>NAMA</th><th>JENIS KELAMIN</th><th>TANGGAL LAHIR</th></tr>
- <?php
- $query = "select * from mahasiswa";
- $result = mysqli_query($connect, $query);
- $no = 1;
- while ($list = mysqli_fetch_array($result))
- {
- echo "<tr>"
- ,"<td>$no</td>"
- ,"<td>$list[nim]</td>"
- ,"<td>", strtoupper($list['nama']),"</td>"
- ,"<td>", strtoupper($list['jenis_kelamin']),"</td>"
- ,"<td>$list[tanggal_lahir]</td></tr>";
- $no++;
- }
- ?>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement