header('Content-Type: text/html; charset=tis-620');
include('../db_config.php');
$sql0="select scode,abb_sch,sname from sk1sch where scode='$sid' ";
$result0=mysql_query($sql0);
$db0=mysql_fetch_array($result0);
$sname=$db0[sname];
$scgrp=$db0[abb_sch];
?>
echo "รร.$sname
กลุ่ม$scgrp"; ?>
$sql="select * from scpic_file where spc_scode='$sid' and spc_type=0";
$result=mysql_query($sql);
$pre="";
while ($db=mysql_fetch_array($result)) {
$pre.="
";
}
$sql="select * from scpic_file where spc_scode='$sid' and spc_type=1";
$result=mysql_query($sql);
$post="";
while ($db=mysql_fetch_array($result)) {
$post.="
";
}
echo "
ก่อนซ่อมแซม | หลังซ่อมแซม |
$pre | $post |
";
?>