$scid=$_GET["scid"];
header('Content-Type: text/html; charset=tis-620');
echo "";
//$scid=$_GET[scid];
include('db_config.php');
echo $scid;
$sql0="select scode,sname,sgrp from $_sch where scode='$scid'" ;
$result0=mysql_query($sql0);
$db0=mysql_fetch_array($result0);
$scname=$db0[sname];
$sgrp=$db0[sgrp];
$sql="SELECT * FROM $_act,$_sch,$_data
WHERE kd_code=kp_id and kd_sch=scode and kd_sch='$scid' and g+s+b>0
order by g desc,s desc,b desc,kp_grp,kd_code";
$result=mysql_query($sql);
echo "
สรุปเหรียญรางวัล $_title โรงเรียน $scname CEO $sgrp