Professional Documents
Culture Documents
<head>
<title>Nilai</title>
</head>
<body>
<?php
$konek=mysql_connect("localhost", "root", "") or die ("Gagal konek ke server.");
mysql_select_db("sia_smkn4batam") or die ("Gagal membuka database.");
?>
<table border="5">
<tr>
<th>N I S N</th>
<th>Kode Guru
<th>Kode Standar Kompetensi</th>
<th>NIlai Angka</th>
<th>Nilai Huruf</th>
<th colspan="3">Aksi</th>
</tr>
<?php
$query = "select * from nilai";
$result = mysql_query($query, $konek);
while ($buff = mysql_fetch_array($result)){
?>
<tr>
<td><?php echo $buff['NISN']; ?></td>
<td><?php echo $buff['kd_guru']; ?></td>
<td><?php echo $buff['kd_SK']; ?></td>
<td><?php echo $buff['nil_angka']; ?></td>
<td><?php echo $buff['nil_huruf']; ?></td>