header('Content-Type: text/html; charset=tis-620'); include("header.php"); echo ""; require_once('db_config.php'); $sql="select * from $_act where kp_type like '$cd' order by kp_sex,kp_id "; $result=mysqli_query($con,$sql); echo "
จำนวนการรับสมัครเข้าแข่งขัน $_title
ที่ | กีฬา | กลุ่ม | ประเภท | รุ่นอายุ | ทีมสมัคร | นักกีฬา(คน) | $rw | $sp | $ex | $ty | $db[kp_age] ปี | $sch | $std | TB; $rw++; $tsch+=$nsch; $tstd+=$db0[nstd]; $sp=$db[kp_grp]; $ex=$sx; $ty=$db[kp_act]; } echo "
รวม$grp | $tstd |