<tr class="success">
            <td class="text-center">ชาย</td>
            <td class="text-center">หญิง</td>
	         <td class="text-center">ชาย</td>
            <td class="text-center">หญิง</td>
            <td class="text-center">ชาย</td>
            <td class="text-center">หญิง</td>
            <td class="text-center">ชาย</td>
            <td class="text-center">หญิง</td>
    </tr>

     </thead>
     <tbody>             
</tbody>
 	<?php 
    $dbrpt->GET_AGE_GROUP_CHW_VILL_M($table, $hcode, $age_st, $age_end);
    while ($arr_rs = $dbrpt->Fetch_array()) {
        ?>
    

    
    <tr>
     <?php 
        if ($arr_rs['VILLNAME'] != 'รวม') {
            ?>
		<td class="text-center">
         <a href="age_group_chw_cid.php?vhid=<?php 
            echo $arr_rs['VHID'];
            ?>
&age_st=<?php 
            echo $age_st;