note 47077 deleted from function.oci-error by sixd
| From: | sixd@php.net | Date: | Mon, 05 Oct 2009 02:07:10 +0000 |
| Subject: | note 47077 deleted from function.oci-error by sixd | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-161328@lists.php.net to get a copy of this message | ||
Note Submitter: bjanetzki at mpmail.net
----
The second example (Displaying the Oracle error message after a parsing error) is wrong.
This example works for me:
$stmt = @oci_parse($conn, "select ' from dual"); // note mismatched quote
if (!$stmt) {
$e = oci_error($conn); // For oci_parse errors pass the connection handle
echo htmlentities($e['message']);
}