}else if($TERMINAL!="" and $MERCHANT=="")
{ $strSQL="select * from debuglog.logs WHERE TERMINAL = '".$_GET["TERMINAL"]. " and rownum = '1' order by DATETIME desc '";
}else if($TERMINAL=="" and $MERCHANT!="")
{$strSQL="select * from debuglog.logs WHERE MERCHANT = '".$_GET["MERCHANT"]."and rownum = '1' order by DATETIME desc '";
}else if($TERMINAL!="" and $MERCHANT!="" )
{$strSQL="select * from debuglog.logs where TERMINAL = '".$_GET["TERMINAL"]. " and MERCHANT = '".$_GET["MERCHANT"]. " and rownum = '1' order by DATETIME desc '";
}else if($dc!="" and $dc2!="")
{$strSQL="select * from debuglog.logs d where to_char(D.DATETIME,'YYYYMMDD') BETWEEN '$_GET[dc]' and '$_GET[dc2] and rownum = '1' order by DATETIME desc '";
Statement ผิดยังไง ครับ เลย Error แบบนี้
Warning: oci_execute() [function.oci-execute]: ORA-00933: SQL command not properly ended i >>> line 102
Warning: oci_fetch_array() [function.oci-fetch-array]: ORA-24374: define not done before fetch or execute and fetch in>>line 103