
<?php
	include "../koneksi.php";
	$data = mysqli_query ($koneksi, " select 
											MaterialID,
											RawMat,
											NoMat,
											Qty
									  from 
									  material 
									  where MaterialID = $_POST[id]");
	$row = mysqli_fetch_array ($data);
	
?>
<form role="form" id="form-edit" method="post" action="update.php">
	<div class="form-group">
		<label>Nama Raw Material</label>
		<input type="hidden" name="material_id" value="<?php echo $row['MaterialID'] ; ?>">
		<input class="form-control" id="rawmat" name="rawmat" value="<?php echo $row['RawMat'] ; ?>">
		<p style="color:red" id="error_edit_rawmat"></p>
	</div>
	<div class="form-group">
		<label>Nomor Material</label>
		<input class="form-control" id="nomat" name="nomat" value="<?php echo $row['NoMat'] ; ?>">
		<p style="color:red" id="error_edit_nomat"></p>
	</div>
	<div class="form-group">
		<label>Quantity</label>
		<input id="qty" name="qty" class="form-control" value="<?php echo $row['Qty'] ; ?>">
		<p style="color:red" id="error_edit_qty"></p>
	</div>			
	
</form>