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

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