Home > PHP > Function > OCI8 > oci_error()

oci_error()

oci_error - Returns the last error found

Syntax

array oci_error (resource $resource)

Arguments

  • resource - For most errors, resource is the resource handle that was passed to the failing function call. For connection errors with oci_connect(), oci_new_connect() or oci_pconnect() do not pass resource.

Description

Returns the last error found.

Version

PHP 5, PECL OCI8 >= 1.1.0

Return value

If no error is found, oci_error() returns FALSE. Otherwise, oci_error() returns the error information as an associative array.