ผมลองใช้ code ดังนี้ครับ
$v_IMEI = '351797001676895';
$sql_find_old_job_and_job_return = "begin sol.find_old_job_and_job_return('$v_IMEI',:job_return,:old_job_id ); end;";
$sql_find_old_job_and_job_return_statement = OCIParse($c1, $sql_find_old_job_and_job_return) or die("can not ociparse $sql_find_old_job_and_job_return_statement");
OCIBindByName($sql_find_old_job_and_job_return_statement,":job_return",$v_job_return,-1);
OCIBindByName($sql_find_old_job_and_job_return_statement,":old_job_id",$v_old_job_id,-1);
OCIExecute($sql_find_old_job_and_job_return_statement) or die("can not ociexecute $sql_find_old_job_and_job_return_statement");
แล้วมี err ดังนี้ครับ
Warning: ociexecute(): OCIStmtExecute: ORA-06550: line 1, column 39: PLS-00363: expression '351797001676895' cannot be used as an assignment target ORA-06550: line 1, column 7: PL/SQL: Statement ignored in d:\inquiry_job\blistel\open_job1.php on line 520
can not ociexecute Resource id #10