Professional Documents
Culture Documents
<head>
<title>Bidang Study</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>Kode Bidang</th>
<th>Nama Bidang</th>
<th colspan="3">Aksi</th>
</tr>
<?php
$query = "select * from bidang_studi";
$result = mysql_query($query, $konek);
while ($buff = mysql_fetch_array($result)){
?>
<tr>
<td><?php echo $buff['kd_bidang']; ?></td>
<td><?php echo $buff['nm_bidang']; ?></td>