$sg=$_GET["sg"];
header('Content-Type: text/html; charset=tis-620');
include('db_config.php');
$sql="select * from $_sch where scgrp='$sg' ";
$result=mysql_query($sql);
echo <<
|
ที่ |
โรงเรียน |
แจ้งแล้ว |
TH;
$rw=1; $nsend=0;
while ($db=mysql_fetch_array($result)) {
$sql1="select * from $_db where smsch='$db[scode]' ";
$result1=mysql_query($sql1);
if ($db1=mysql_fetch_array($result1)) {
$dy=$db1[smday];
$ast=substr($day[$dy],0,8);
// $ast='
![](../images/ok.jpg)
';
$nsend++;
} else {
$ast='
![](../images/nok.jpg)
';
}
echo "
$rw |
$db[sname] |
$ast |
";
$rw++;
}
$tstd=number_format($tstd,0,'.',',');
echo "
รวม |
$nsend |
![](images/back.png)
";
?>