<?php include "layouts/menu.php"; ?> <div class="right_col" role="main">
            <div class="row">
                 <!-- page header -->
                <div class="col-lg-12">
                    <h1 class="page-header">Pending List</h1>
                </div>
                <!--end page header -->
            </div>
			  <?php //$imm=$_REQUEST['imm'];
			  $immm = NULL;
$qry22 = "SELECT * FROM pending where mfin='$mfin'";
   //$qry2 = "SELECT * FROM customerdetails where mfin='$mfin'";
	  $rs2 = mysqli_query($conn, $qry22);
	  // Loop the recordset $rs
	// Each row will be made into an array ($row) using mysqli_fetch_array
	while($row2 = mysqli_fetch_array($rs2)){
		$ahpl = $row2['hpl'];
		$amfin = $row2['mfin'];
		$idd = $row2['id'];
 $qry2 = "SELECT * FROM customerdetails where hpl='$ahpl' && mfin='$amfin'";
   //$qry2 = "SELECT * FROM customerdetails where mfin='$mfin'";
	  $rs = mysqli_query($conn, $qry2);
	  // Loop the recordset $rs
	// Each row will be made into an array ($row) using mysqli_fetch_array
	$row = mysqli_fetch_array($rs);
$cno = $row['cno'];
$dmnt = $row['duemnt'];


			$update=mysqli_query($conn, "update pending set cno='$cno',duemnt='$dmnt' where id='$idd'");			
		}
		
	 
	 	

	 ?>
			
 </div></div>
 
 
</div>
</div></div>
</div><?php include "layouts/footer.php"; ?></body></html>