$sql_page = 'SELECT * FROM ( SELECT r.*, ROW_NUMBER() over(order by DID ) rn FROM DUTSWITCH r) t WHERE t.RN > '.$item_start.' and t.rn <='.($item_start + $page_size).$sql;
$sql_page2 = 'SELECT COUNT(*) FROM ( SELECT r.*, ROW_NUMBER() over(order by DID ) rn FROM DUTSWITCH r) t WHERE t.RN > '.$item_start.' and t.rn <='.($item_start + $page_size).$sql;
$result = oci_parse($con,$sql_page);
oci_execute($result);//error part
$result2 = oci_parse($con,$sql_page2);
oci_execute($result2);//error part
$num = oci_fetch_row($result2);//error part
//print_r($num);
//echo $num[0];
$result_rows = $num[0];
//echo $result_rows;

while ($row = oci_fetch_array($result)) {//error part
echo '<tr class="cells" onmouseover="this.className=\'cells2\'" onmouseout="this.className=\'cells\'">';
错误如下:Warning: oci_execute() [function.oci-execute]: ORA-00933: SQL command not properly ended Warning: oci_execute() [function.oci-execute]: ORA-00933: SQL command not properly endedWarning: oci_fetch_row() [function.oci-fetch-row]: ORA-24374: define not done before fetch or execute and fetch 
Warning: oci_fetch_array() [function.oci-fetch-array]: ORA-24374: define not done before fetch or execute and fetch