$sg=$_GET[sg];
header('Content-Type: text/html; charset=tis-620');
include('db_config.php');
$sql="select * from $_sch 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 (empty($db[opt])) {
$opt="";
} else {
$opt=$op[$db[opt]];
}
echo <<
$rw |
$db[sname] |
$opt |
TB;
$rw++;
$fl='';
}
$tps=number_format($ttsk*100/$tts,2,'.',',');
echo "
รวม |
$ts |
";
?>
|