<table class="table table-hover"> <thead> <tr> <th>ตำบล</th> <th>จำนวนประชากร</th> <th>ชาย</th> <th>หญิง</th> </tr> </thead> <tbody> </tbody> <?php $dbrpt->GET_AGE_GROUP_TAMBON($table, $age, $ampcode); while ($arr_rs = $dbrpt->Fetch_array()) { ?> <tr> <td> <a href="age_group_60up_pcu.php?tambon=<?php echo $arr_rs['TBCODE']; ?> &id=<?php echo $id; ?> &age=<?php echo $age; ?> &table=<?php