$sg=$_GET["sg"];
header('Content-Type: text/html; charset=tis-620');
include('../db_config.php');
$sql="select * from sk1_sch66 where scgrp='$sg' ";
$result=mysql_query($sql);
echo <<
|
ที่ |
โรงเรียน |
ส่ง |
ผ่าน |
TH;
$rw=1; $nsend=$npass=0;
while ($db=mysql_fetch_array($result)) {
if ($db[fld_dgt66] <> '' ) {
$nsend++;
$ast='
';
if ($db[dgt66_rem] == '1' ) {
$pass='
';
$npass++;
} else {
$pass='
';
}
} else {
$ast='
';
$pass='
';
}
echo <<
$rw |
$db[sname] |
$ast |
$pass |
TB;
$rw++;
}
$tstd=number_format($tstd,0,'.',',');
echo <<
รวม |
$nsend |
$npass |
ไฟล์กากบาทสีแดง คือ ยังไม่ส่ง/ไฟล์ไม่ถูกต้อง/ไฟล์อ่านไม่ได้ ให้ส่งใหม่
TF;
?>