Query: ifx_num_fields
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
IFX_NUM_FIELDS(3) 1 IFX_NUM_FIELDS(3) ifx_num_fields - Returns the number of columns in the querySYNOPSISint ifx_num_fields (resource $result_id)DESCRIPTIONAfter preparing or executing a query, this call gives you the number of columns in the query.PARAMETERSo $result_id -$result_id is a valid resultid returned by ifx_query(3) or ifx_prepare(3) (select type queries only!).RETURN VALUESReturns the number of columns in query for $result_id, or FALSE on errors.EXAMPLESExample #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 ALSOifx_num_rows(3). PHP Documentation Group IFX_NUM_FIELDS(3)