Home > PHP > Function > Informix > ifx_getsqlca()

ifx_getsqlca()

ifx_getsqlca - Get the contents of sqlca.sqlerrd[0..5] after a query

Syntax

array ifx_getsqlca (resource $result_id)

Arguments

  • result_id - result_id is a valid result id returned by ifx_query() or ifx_prepare() (select type queries only!).

Description

Returns a pseudo-row with sqlca.sqlerrd[0]... sqlca.sqlerrd[5] after the query associated with result_id.

Version

PHP 4, <=5.2.0

Return value

Returns an associative array with the following entries: sqlerrd0, sqlerrd1, sqlerrd2, sqlerrd3, sqlerrd4and sqlerrd5.