Untuk membuat tabel seperti di atas copas kode berikut :
<html>
<head>
<title>Tabel Mahasiswa</title>
</head>
<body>
<center>Tabel Mahasiswa</center>
<?php
echo '
<center>
<table width="200" border="1">
<tr>
<td bgcolor="#0099FF"><div align="center"><span class="style4">NO</span></div></td>
<td bgcolor="#0099FF"><div align="center"><span class="style4">NPM</span></div></td>
<td bgcolor="#0099FF"><div align="center"><span class="style4">NAMA</span></div></td>
</tr>
<tr>
<td bgcolor="#0099FF"><div align="center"><span class="style4">1</span></div></td>
<td bgcolor="#0099FF"><div align="center"><span class="style4">11111100095</span></div></td>
<td bgcolor="#0099FF"><div align="center"><span class="style4">Arjun</span></div></td>
</tr>
<tr>
<td bgcolor="#0099FF"><div align="center"><span class="style4">2</span></div></td>
<td bgcolor="#0099FF"><div align="center"><span class="style4">11111100096</span></div></td>
<td bgcolor="#0099FF"><div align="center"><span class="style4">Ivan</span></div></td>
</tr>
<tr>
<td bgcolor="#0099FF"><div align="center"><span class="style4">3</span></div></td>
<td bgcolor="#0099FF"><div align="center"><span class="style4">11111100090</span></div></td>
<td bgcolor="#0099FF"><div align="center"><span class="style4">Luthfi</span></div></td>
</tr>
<tr>
<td bgcolor="#0099FF"><div align="center"><span class="style4">4</span></div></td>
<td bgcolor="#0099FF"><div align="center"><span class="style4">11111100079</span></div></td>
<td bgcolor="#0099FF"><div align="center"><span class="style4">Efdi</span></div></td>
</tr>
</table>
</center>';
?>
</body>
</html>
0 comments:
Posting Komentar