<table class="table table-hover">
<thead>
          <tr>
              
             <th>หมู่บ้าน</th>
           <th>จำนวนประชากร</th>
            <th>ชาย</th>
             <th>หญิง</th>
          

          </tr>
     </thead>
     <tbody>             
</tbody>
<?php 
    $dbrpt->GET_AGE_GROUP_CHW_VILL($table, $hcode, $age_st, $age_end);
    while ($arr_rs = $dbrpt->Fetch_array()) {
        ?>
    
 	
    <tr>
     <?php 
        if ($arr_rs['VILLNAME'] != 'รวม') {
            ?>
		<td>
         <a href="age_group_chw_cid.php?vhid=<?php 
            echo $arr_rs['VHID'];
            ?>
&age_st=<?php 
            echo $age_st;
            ?>