View file File name : edit_bank.php Content : <?php foreach($data as $dt){ ?> <div class="container-fluid"> <div class="col-md-12 content-center"> <div class="card-plain"> <form class="form" enctype="multipart/form-data" method="post" action="<?=base_url()?>Bank/update_bank"> <div class="header"> <div class="logo-container"> <img src="assets/images/logo.svg" alt=""> </div> <h5 CLASS="text-center"> EDIT BANK</h5> </div> <div class="content"> <input type="hidden" value="<?=$dt->id?>" name="id"> <div class="input-group"> <input value="<?=$dt->bank_name?>" type="text" name="bank_name" class="form-control" placeholder="Bank Name"> </div> <div class="input-group"> <img src="<?=$dt->image?>" style="height:100px;"> <input type="file" name="image" class="form-control" placeholder="image"> <span class="input-group-addon"> <i class="zmdi zmdi-account-circle"></i> </span> </div> <div class="input-group"> <input type="hidden" name="updated_by" value="<?=$_SESSION["users"]->id?>" class="form-control" /> </div> </div> <div class="footer text-center"> <button type="submit" class="btn l-cyan btn-round btn-lg btn-block waves-effect waves-light">Submit</button> </div> </form> </div> </div> </div> <?php } ?>