I am trying to catch a runtime exception that will be thrown by a function that is basically just a wrapper function for oci_execute(). For example:
try {
$SQL = "INSERT";
ExecuteQuery($SQL);
} catch (Exception $e) {
echo "<p>There was an error.</p>";
echo $e->getMessage();
}
However, the exception doesn't appear to be caught:
...
ociexecute() [function.ociexecute]: ORA-00925: missing INTO keyword
...
Am I missing something here?