note 9564 added to OCIError
| From: | mac at clondiag dot com | Date: | Sat, 11 Nov 2000 17:37:34 +0000 |
| Subject: | note 9564 added to OCIError | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7602@lists.php.net to get a copy of this message | ||
the docs are confusing: ocierror expects the context that
contains the error to be passed in.
sample:
$c = ocilogon("u","p");
if (! $c) var_dump(ocierror()); // we have no connection yet
// so the error is stored global.
$s = ociparse($c,"select * from tubu");
if (! $s) var_dump(ocierror($c)); // parse failed - error is
// stored in connection handle
$err = ociexecute($s);
if ($err) var_dump(ocierror($s)); // error code for ociexecute()
// is stored in the
// statement handle
(quoted from a mail written by Thies C. Arntzen)
http://www.php.net/manual/function.ocierror.php