header('Content-Type: text/html; charset=tis-620');
include('../db_config.php');
$sql="select * from sk1_e62,sk1_sch where en_smis=smis and scgrp='$sg' ";
$result=mysql_query($sql);
echo <<
|
ที่ |
โรงเรียน |
ราย งาน |
TH;
$rw=1;
while ($db=mysql_fetch_array($result)) {
if ($db[en_test]+$db[en_good] >0)
{ $ast='
![](../images/ok.jpg)
'; $ns++; } else { $ast='
![](../images/nok.jpg)
'; }
echo "
$rw |
$db[sname] |
$ast |
";
$rw++;
$tns+=$ns;
$ns=0;
}
$tstd=number_format($tstd,0,'.',',');
echo "
รวม |
$tns |
![](images/back.png)
";
?>