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