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