Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style type="text/css">
- table{
- border: : 6px ;
- background: honeydew;
- width: 600px;
- }
- th{
- font-family: 'KG Broken Vessels Sketch';
- font-size: 22px;
- text-align: center;
- }
- td{
- font-family: 'KG Broken Vessels Sketch';
- font-size: 19px;
- text-align: center;
- }
- </style>
- <?php
- $siswa = array(
- array('nis' => '1314115690', 'nama' => 'Bruce Banner', 'kelas' => 'MIF 1', 'jurusan' => 'MIF'),
- array('nis' => '1314115692', 'nama' => 'Stephen Strange', 'kelas' => 'MIF 2', 'jurusan' => 'MIF'),
- array('nis' => '1314115693', 'nama' => 'Tony Stark', 'kelas' => 'MIF 3', 'jurusan' => 'MIF'),
- array('nis' => '1314114799', 'nama' => 'Peter Parker', 'kelas' => 'MIF 1', 'jurusan' => 'MIF')
- );
- ?>
- <table border="3" cellspacing="0" cellpadding="0">
- <tr>
- <th>NIS</th>
- <th>Nama</th>
- <th>Kelas</th>
- <th>Jurusan</th>
- </tr>
- <?php foreach ($siswa as $avengers) { ?>
- <tr>
- <td><?php echo $avengers['nis']; ?></td>
- <td><?php echo $avengers['nama']; ?></td>
- <td><?php echo $avengers['kelas']; ?></td>
- <td><?php echo $avengers['jurusan']; ?></td>
- </tr>
- <?php } ?>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement