<?php 
 $cc=0;
     
 
  require_once "labClass.php";
  
  $con = new labClass();
  
 $chkp= $con->getExpensesR(); 
    
     
if ($chkp->rowCount()>0) {

  $chp=$chkp->fetchAll();
  ?> 

  <div class="container-fluid" id="co">
    <img src="assets/phead.PNG" width="100%" height="80px">
  <table class="table table-bordered" style="width:74%;">
    <thead> 
     <th class="">
        <small><h6>S/N- PURPOSE</h6></small>
     </th>
      <th class=""> 
        <small><h6>AMOUNT</h6></small>
      </th>
     <th class=""> 
        <small><h6>DATE</h6></small>
     </th>
    </thead> 
   <tbody>
   
  <?php

 foreach ($chp as $key => $p) {

    $expID=$p['expID'];
    
      $cc++; 
     
        ?>

<tr>
  <td colspan="3"> 
       <sup id="rdn<?php echo $cc;?>" class="text-danger" ></sup> 
  </td> 
  </tr>
  <tr>
  <td>
  
       <?php echo $p['expID'];?>
      
        . <?php echo $p['exReason'];?>
         
  
  </td>
  <td> 
    <?php echo $p['exAmount'];?>
  </td> 

  <td>
        <?php echo $p['exDate'];?>
  </td> 
     
</tr>
 
 
 
  <?php
 
}
  $cc=0;

 ?> 
 </tbody>
</table> 
 </div>
 <?php
}
   

  ?>