Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <link href="https://fonts.googleapis.com/css?family=Bree+Serif&display=swap" rel="stylesheet">
- <style type="text/css">
- table{
- background: linear-gradient(to right, #0033cc 0%, #ff0066 100%);
- border: 5px outset darkblue;
- }
- th, td{
- font-family: 'Bree Serif', serif;
- width: 100px;
- }
- </style>
- <?php
- $siswa = array(array("1314114590", "Tony", "MIF1"), array("1314114592", "Thor", "MIF2"), array("1314114593", "Bruce", "MIF3"));
- echo '<table border = 1>
- <tr>
- <th>NIS</th>
- <th>NAMA</th>
- <th>KELAS</th>
- </tr>';
- for ($i = 0; $i < 3; $i++) {
- echo '<tr>';
- for ($j = 0; $j < 3; $j++) {
- echo '<td>'.$siswa[$i][$j].'</td>';
- }
- echo '</tr>';
- }
- echo '</table>';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement