Home > PHP > Function > Informix > ifx_num_rows()

ifx_num_rows()

ifx_num_rows - Count the rows already fetched from a query

Syntax

int ifx_num_rows (resource $result_id)

Arguments

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

Description

Gives the number of rows fetched so far for a query with result_id after a ifx_query() or ifx_do() query.

Version

PHP 4, <=5.2.0

Return value

Returns the number of fetched rows or FALSE on errors.