Home > PHP > Function > OCI8 > oci_result()

oci_result()

oci_result - Returns field's value from the fetched row

Syntax

mixed oci_result (resource $statement, mixed $field)

Arguments

  • statement
  • field - Can be either use the column number (1-based) or the column name (in uppercase).

Description

Returns the data from field in the current row, fetched by oci_fetch().

Version

PHP 5, PECL OCI8 >= 1.1.0

Return value

Returns everything as strings except for abstract types (ROWIDs, LOBs and FILEs). Returns FALSE on error.