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

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