include('../db_config.php');
$sql="select * from sk1_sch where scode='$sid' ";
$result=mysql_query($sql);
$db=mysql_fetch_array($result);
if ($db[putil]==1) { $chk1='checked'; } else { $chk1=''; }
if ($db[putil]==0) { $chk0='checked'; } else { $chk0=''; }
?>
header('Content-Type: text/html; charset=tis-620');
$sql="select * from putil_file where spc_scode='$sid' order by spc_id desc";
$result=mysql_query($sql);
echo "";
$rw=1;
while ($db=mysql_fetch_array($result)) {
$ext = strrchr( $db[spc_pic] , '.' );
if ($ext=='.pdf' or $ext=='PDF')
{ $vpic="images/pdf-pic.jpg"; } else { $vpic="pics/$db[spc_pic]"; }
echo "
$db[spc_pic]
| |
";
}
echo "
";
?>