butuh bantuanmu!

<?php
include('config.php');
?>

<html>
<head>
<title>Belajar PHP</title>
</head>

<body>
<h1>Form Input Data</h1>

<?php
$id = $_GET['no'];

$query = mysql_query("select * from inventaris where no='$id'") or 
die(mysql_error());

$data = mysql_fetch_array($query);
?>

<form name="update_data" action="update.php" method="post">
<input type="hidden" name="no" value="<?php echo $id; ?>" 
/>
<table border="0" cellpadding="5" cellspacing="0">
    <tbody>
	<tr>
        	<td>No</td>
        	<td>:</td>
        	<td><input type="text" name="no" maxlength="20" 
required="required" value="<?php echo $data['no']; ?>" 
disabled /></td>
        </tr>
	
    	<tr>
        	<td>Kode Barang</td>
        	<td>:</td>
        	<td><input type="text" name="KodeBarang" maxlength="20" 
required="required" value="<?php echo $data['KodeBarang']; ?>" 
/></td>
        </tr>
    	<tr>
        	<td>Jenis Barang</td>
        	<td>:</td>
        	<td><input type="text" name="JenisBarang" 
maxlength="20" required="required" value="<?php echo 
$data['JenisBarang']; ?>" /></td>
        </tr>
    	<tr>
        	<td>Jumlah Aset</td>
        	<td>:</td>
        	<td><input type="text" name="JumlahAset" maxlength="100"
 required="required" value="<?php echo $data['JumlahAset']; ?>" 
/></td>
        </tr>
    	<tr>
        	<td>Merk/Type</td>
        	<td>:</td>
        	<td><input type="text" name="Merktype" 
required="required" value="<?php echo $data['Merktype']; ?>" 
/></td>
        </tr>
    	<tr>
        	<td>Ruang Lokasi</td>
        	<td>:</td>
        	<td><input type="text" name="RuangLokasi" 
required="required" value="<?php echo $data['RuangLokasi']; ?>" 
/></td>
        </tr>
    	<tr>
        	<td>Bahan</td>
        	<td>:</td>
        	<td><input type="text" name="Bahan" maxlength="14" 
required="required" value="<?php echo $data['Bahan']; ?>" 
/></td>
        </tr>
		<tr>
        	<td>Cara Perolehan</td>
        	<td>:</td>
        	<td><input type="text" name="CaraPerolehan" maxlength="14" 
required="required" value="<?php echo $data['CaraPerolehan']; ?>" 
/></td>
        </tr>
		<tr>
        	<td>Tahun Perolehan</td>
        	<td>:</td>
        	<td><input type="text" name="TahunPerolehan" maxlength="14" 
required="required" value="<?php echo $data['TahunPerolehan']; ?>" 
/></td>
        </tr>
		<tr>
        	<td>Satuan</td>
        	<td>:</td>
        	<td><input type="text" name="Satuan" maxlength="14" 
required="required" value="<?php echo $data['Satuan']; ?>" 
/></td>
        </tr>
		<tr>
        	<td>Keadaan Barang</td>
        	<td>:</td>
        	<td><input type="text" name="KeadaanBarang" maxlength="14" 
required="required" value="<?php echo $data['KeadaanBarang']; ?>" 
/></td>
        </tr>
		<tr>
        	<td>Harga Barang</td>
        	<td>:</td>
        	<td><input type="text" name="HargaBarang" maxlength="14" 
required="required" value="<?php echo $data['HargaBarang']; ?>" 
/></td>
        </tr>
		<tr>
        	<td>Total Harga</td>
        	<td>:</td>
        	<td><input type="text" name="TotalHarga" maxlength="14" 
required="required" value="<?php echo $data['TotalHarga']; ?>"disabled
/></td>
        </tr>
		<tr>
        	<td>Keterangan</td>
        	<td>:</td>
        	<td><input type="text" name="Keterangan" maxlength="14" 
required="required" value="<?php echo $data['Keterangan']; ?>" 
/></td>
        </tr>
        <tr>
        	<td align="right" colspan="3"><input type="submit" 
name="submit" value="Simpan" /></td>
        </tr>
    </tbody>
</table>
</form>

<a href="view.php">Lihat Data</a>

</body>
</html>