Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $no = 1;
- global $link;
- $pilih = "SELECT nama FROM siswa ORDER BY rand()";
- $result = mysqli_query($link,$pilih);
- ?>
- <table class="table table-striped text-center">
- <tr class="success">
- <td><strong>No. </strong></td>
- <td><strong>Senin</strong></td>
- <td><strong>Selasa</strong></td>
- <td><strong>Rabu</strong></td>
- <td><strong>Kamis</strong></td>
- <td><strong>Jum'at</strong></td>
- <td><strong>Sabtu</strong></td>
- </tr>
- <?php
- while ($row=mysqli_fetch_array($result)) {
- ?>
- <tr>
- <td><?php echo $no++; ?></td>
- <td><?php echo $row['nama']; ?></td>
- <td><?php echo $row['nama']; ?></td>
- <td><?php echo $row['nama']; ?></td>
- <td><?php echo $row['nama']; ?></td>
- <td><?php echo $row['nama']; ?></td>
- <td><?php echo $row['nama']; ?></td>
- </tr>
- <?php
- }
- ?>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment