ifx_num_fields(3) php man page | unix.com

Man Page: ifx_num_fields

Operating Environment: php

Section: 3

IFX_NUM_FIELDS(3)							 1							 IFX_NUM_FIELDS(3)

ifx_num_fields - Returns the number of columns in the query

SYNOPSIS
int ifx_num_fields (resource $result_id)
DESCRIPTION
After preparing or executing a query, this call gives you the number of columns in the query.
PARAMETERS
o $result_id -$result_id is a valid resultid returned by ifx_query(3) or ifx_prepare(3) (select type queries only!).
RETURN VALUES
Returns the number of columns in query for $result_id, or FALSE on errors.
EXAMPLES
Example #1 ifx_num_fields(3) Example <?php $conn_id = ifx_connect("db", "user", "password"); $res_id = ifx_query("select * from systables", $conn_id); echo ifx_num_fields($res_id); ?>
SEE ALSO
ifx_num_rows(3). PHP Documentation Group IFX_NUM_FIELDS(3)
Related Man Pages
ifx_affected_rows(3) - php
ifx_fetch_row(3) - php
ifx_fieldproperties(3) - php
ifx_getsqlca(3) - php
ifx_htmltbl_result(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
Status of UNIX.COM Forum Transformation
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch
Please Welcome Nicki Paul to the Moderator Team!