Home > PHP > Function > Informix > ifx_num_fields()

ifx_num_fields()

ifx_num_fields - Returns the number of columns in the query

Syntax

int ifx_num_fields (resource $result_id)

Arguments

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

Description

After preparing or executing a query, this call gives you the number of columns in the query.

Version

PHP 4, <=5.2.0

Return value

Returns the number of columns in query for result_id, or FALSE on errors.