$sqlStm = "select distinct t2.cs_coderegis,t2.major_id,t2.str_year,t2.cs_code,t2.t_name,t2.sec ,t2.cid,t3.sdate,t3.time_in,t3.time_out,t4.teacher,t4.teacher_grade,t4.teacher_assess
from TB_SHCEDULE4 t2,tb_shcedule3 t3,tb_teacher t4
where t2.cs_code = t3.cs_code AND t2.sec=t3.sec AND t2.cs_code = t4.cs_code AND t4.sec=t4.sec AND t4.sm='3' AND t4.yr='55'
AND t2.SM = '3' AND t2.YR = '55' AND t3.sm='3' AND t3.yr='55' AND t3.SEC NOT IN ('51','52','501','502')
order by t2.cs_code,t2.sec,t2.major_id,t2.str_year";
$objParse = OCIParse($con,$sqlStm);
$Result = OCIExecute($objParse,OCI_DEFAULT);
$Num_Rows = oci_fetch_all($objParse, $Result);