
<?php
	include "../koneksi.php";

	$no = 1;
	$data = mysqli_query ($koneksi, " select 
											MesinID,
											Mesin,
											Type,
											Tanggal
									  from 
									  mesin 
									  where MesinID = $_POST[id]");
	$row = mysqli_fetch_array ($data);
	
?>
<form role="form" id="form-edit" method="post" action="update.php">
	<div class="form-group">
		<label>Nama Mesin</label>
		<input type="hidden" name="mesin_id" value="<?php echo $row['MesinID'] ; ?>">
		<input class="form-control" id="mesin" name="mesin" value="<?php echo $row['Mesin'] ; ?>">
		<p style="color:red" id="error_edit_mesin"></p>
	</div>
	<div class="form-group">
		<label>Type Mesin</label>
		<input class="form-control" id="type" name="type" value="<?php echo $row['Type'] ; ?>">
		<p style="color:red" id="error_edit_type"></p>
	</div>
	<div class="form-group">
		<label>Tanggaly</label>
		<input id="tgl" name="tgl" class="form-control" value="<?php echo $row['Tanggal'] ; ?>">
		<p style="color:red" id="error_edit_tgl"></p>
	</div>			
	
</form>