<?
$strSQL2 = "select tblreportchecklearndetail.*,tblreportchecklearnmain.*,tblsubject.* ,tblteacherhis.*,estimate.*
from tblreportchecklearndetail,tblreportchecklearnmain,tblsubject,tblteacherhis,estimate
where 1
and tblreportchecklearndetail.RCLNo=tblreportchecklearnmain.RCLNo
and tblreportchecklearnmain.SubNo=tblsubject.SubNo
and tblreportchecklearnmain.TeacherNo=tblteacherhis.TeacherNo
and tblreportchecklearnmain.TermYear='1/2555'
and tblreportchecklearndetail.StdNo=$StdNo
and estimate.RCLNo=tblreportchecklearnmain.RCLNo";////////ส่วนที่เพิ่ม///////
$objQuery2 = mysql_query($strSQL2) or die ("Error Query [".$strSQL2."]");
?>
<?
$strSQL2 = "select tblreportchecklearndetail.*,tblreportchecklearnmain.*,tblsubject.* ,tblteacherhis.*
from tblreportchecklearndetail,tblreportchecklearnmain,tblsubject,tblteacherhis
where 1
and tblreportchecklearndetail.RCLNo=tblreportchecklearnmain.RCLNo
and tblreportchecklearnmain.SubNo=tblsubject.SubNo
and tblreportchecklearnmain.TeacherNo=tblteacherhis.TeacherNo
and tblreportchecklearnmain.TermYear='1/2555'
and tblreportchecklearndetail.StdNo=$StdNo";
$objQuery2 = mysql_query($strSQL2) or die ("Error Query [".$strSQL2."]");
?>