For Oracle procedures, here is an easy way to call
$rsponse = ''; $s = oci_parse($this->db->conn_id, "begin packageName.procedureName(:bind1,:bind2,:bind3,:bind4,:bind5); end;"); oci_bind_by_name($s, ":bind1", $data['fieldOne'],300); oci_bind_by_name($s, ":bind2", $data['fieldTwo'],300); oci_bind_by_name($s, ":bind3", $data['fieldThre'],300); oci_bind_by_name($s, ":bind4", $data['fieldFour'],300); oci_bind_by_name($s, ":bind4", $response,300); oci_execute($s, OCI_DEFAULT); echo $message;
In the above procedure, the procedure takes four arguments as input and one parameter as output. in case of direct call procedure, delete 'packageName.' What is it...
Tariq
source share