Home > PHP > Function > > ingres_fetch_object()

ingres_fetch_object()

ingres_fetch_object - Fetch a row of result into an object

Syntax

object ingres_fetch_object (resource $result, int $result_type)

Arguments

  • result - The query result identifier
  • result_type - (Optional argument.) result_type is a constant and can take the following values: INGRES_ASSOC, INGRES_NUM, and INGRES_BOTH.

Description

This function is similar to ingres_fetch_array(), with one difference - an object is returned instead of an array. Indirectly, this means that you can access the data only by the field names and not by their offsets (numbers are illegal property names).

Version

PHP 4.0.2, 5 <= 5.0.5, PECL ingres >= 1.0.0

Return value

Returns an object that corresponds to the fetched row, or FALSE if there are no more rows