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"; ?>
![](images/back.png)
$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.="![](pics/$db[spc_pic])
";
}
$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.="![](pics/$db[spc_pic])
";
}
echo "
ก่อนซ่อมแซม | หลังซ่อมแซม |
$pre | $post |
";
?>