title: Returning an Oracle error in PHP?
body: <p>Not sure if that makes sense, but say I have this code...</p>
  
  <pre><code>$updateSql = oci_parse($conn, 'update "table" SET
  "column"=:column where "Unique_Record_Id" = :Unique_Record_Id');
  OCIBindByName($updateSql, ":Unique_Record_Id", $absenceData['Unique_Record_Id']);
  OCIBindByName($updateSql, ":column", $column);
  
  if(oci_execute($updateSql)){
   // np
  } else {
   echo "I want an error code here please :(";
  }
  </code></pre>
  
  <p>Is there anyway to display an ORA error message in the else statement please? Apologies for the random question, but since binding doesn't really generate proper SQL I can't just copy &amp; paste it easily into SQL developer.</p>
  
  <p>Thanks!</p>