header('Content-Type: text/html; charset=tis-620'); echo ""; include('db_config.php'); mysql_query("TRUNCATE TABLE mt1"); mysql_query("insert into mt1 (SELECT * FROM $_data group by kd_sch,kd_code,g,s,b)"); $sql="select * from $_act where kp_cd='$grp' order by kp_code"; $result=mysql_query($sql); echo "
ที่ | รหัส | กลุ่มสาระ | กิจกรรม | รวม | |||
$rw | $db[kp_code] | $db[kp_grp] | $db[kp_act] | $db1[g] | $db1[s] | $db1[b] | $tt |
รวม | $tg | $ts | $tb | $total |