$sg=$_GET["sg"];
header('Content-Type: text/html; charset=tis-620');
include('db_config.php');
$sql="select * from $_data where scgrp='$sg' order by smis ";
$result0=mysql_query($sql);
$db0=mysql_fetch_array($result0);
$result=mysql_query($sql);
echo <<
กลุ่มโรงเรียน : $db0[sgrp]
ที่
โรงเรียน
รายงาน แล้ว
TH;
$rw=1; $ts=0;
while ($db=mysql_fetch_array($result)) {
if ($db[conf]=='1') {
$ck="";
$ts++;
} else {
$ck="";
}
echo <<