Hi there, my first record do not update but ok in the others. thanks!
Edit <?php include('button_modal.php–button_modal.php
<div class="modal fade" id="update<?php echo $frow['file_id']; ?>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<center><h4 class="modal-title" id="myModalLabel">Edit <strong><?php echo $tin;?></strong> ?</h4></center>
</div>
<div class="modal-body">
<?php
$edit=mysqli_query($conn,"select * from file where file_id='".$frow['file_id']."'")or die(mysqli_error());
$erow=mysqli_fetch_array($edit);
?>
<div class="container-fluid">
<form method="POST" action="edit.php?id=<?php echo $erow['file_id']; ?>">
<div class="row">
<div class="col-lg-2">
<label style="position:relative; top:7px;">Description:</label>
</div>
<div class="col-lg-10">
<input type="text" name="filename" class="form-control" value="<?php echo $erow['file_id']; ?>">
</div>
</div>
<div class="row">
<div class="col-lg-2">
<label style="position:relative; top:7px;">Remarks:</label>
</div>
<div class="col-lg-10">
<input type="text" name="tradename" class="form-control" value="<?php echo $erow['trade_name']; ?>">
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-info" class="fa fa-save"></i> Update</button>
<button type="button" class="btn btn-info" data-dismiss="modal"><i class="fa fa-times" style="float: right>"</i> Close</button>
</div>
</form>
</div>
</div>
</div>