<table id="myTable" class="table table-hover"> <thead> <tr> <th>อำเภอ</th> <th>จำนวนประชากร</th> <th>ชาย</th> <th>หญิง</th> </tr> </thead> <tbody> </tbody> <?php $dbrpt->GET_AGE_GROUP_CHM_AMP($table); while ($arr_rs = $dbrpt->Fetch_array()) { ?> <tr> <td> <a href="javascript:popup('age_group_chm_tambon.php?ampcode=<?php echo $arr_rs['AMPCODE']; ?> &id=<?php echo $id; ?> &age_st=<?php echo $age_st; ?> &age_end=<?php