" ; header('Content-Type: text/html; charset=tis-620'); echo ""; include('db_config.php'); $sql="SELECT * FROM $_sch order by scgrp,scode"; $result=mysql_query($sql); echo "
รายชื่อเลือกสถานศึกษา สมัครเข้าแข่งขัน
$_title [ กลับรายการเดิม ] "; $tst=0; $rw=1; while ($db=mysql_fetch_array($result)) { if ($db[scode] != 000) { $sql2="select kd_sch from $_data where kd_sch=$db[scode] "; $result2=mysql_query($sql2); $nst=mysql_num_rows($result2); if ($nst==0) { $nst="-" ; } if ($db[level]=='o') { $stype='ขยายโอกาส'; } elseif($db[level]=='a') { $stype='เอกชน/อปท.'; } else { $stype=''; } // $stype=''; echo ""; $tst+=$nst; $rw++; } } echo "
ที่ สถานศึกษา (คลิกเพื่อสมัคร) กลุ่มโรงเรียน ประเภท รร. สมัครแล้ว(คน)
$rw $db[sname] $db[abb_sch] $stype $nst
รวม $tst
[ กลับรายการเดิม ]"; // include("../footer.php"); ?>