
<?php

$mid = $_GET["mid"];
?>    
<table id="example2" class="table table-bordered table-hover">

<thead>
  <tr>
  <th width="5%">Reading Date </th> 
   <th width="10%" >Prev Reading</th>
  <th  width="10%">Pres Reading</th>  
  <th  width="10%">Total Reading</th>  
  <th width="10%" >Bill </th>
 
  <th width="5%"> Action</th>
 
  
 
</tr>
</thead>
<tbody>

<?php


// $acctno = "this. document.getElementById('id_u').value"
$result = mysqli_query($conn,"SELECT * FROM tbl_members_report WHERE Branch = 'Laguna' and account_no = '$mid'");
$i=1;
while($row = mysqli_fetch_array($result)) {
?>
<tr id="<?php echo $row["id"]; ?>">
                <td>
                     <?php echo $row["reading_date"]; ?>
               </td>
              <td>
                     <?php echo $row["prev_reading"]; ?>
               </td>
               <td>
                     <?php echo   $row["pres_reading"]; ?>
               </td>
               <td>
                     <?php echo   $row["total_reading"]; ?>
               </td>
               <td>
               <b style="color:#fd0000"> <?php echo '&#8369;'.$row["billing_amount"]; ?> </b>
               </td>
              
              
             
                  <td> 
           
               <a href="#deletereading" class="deletereading btn btn-danger btn-radius" data-id="<?php echo $row["id"]; ?>" data-toggle="modal">
		 <i class="fas fa-trash-alt" data-toggle="tooltip" 
			  title="Delete"></i></a>
                    
                </td>
                
               
                



</tr>
<?php
$i++;
}
?>
</tbody>
</table>
<!---END payment history RECORD -->
 