search for in the  
<ifx_nullformatifx_num_rows>
Last updated: Thu, 19 May 2005

ifx_num_fields

(PHP 3 >= 3.0.3, PHP 4, PHP 5)

ifx_num_fields -- Returns the number of columns in the query

Description

int ifx_num_fields ( int result_id )

Returns the number of columns in query for result_id or FALSE on error

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



User Contributed Notes
ifx_num_fields
icespawn11882 at hotmail dot com
04-Mar-2005 10:54
An example of this function:

$conn_id = ifx_connect("db", "user", "password");
$res_id = ifx_query("select * from systables", $conn_id);
$res = ifx_num_fields($res_id);
echo $res;

$res contains the number of columns in the query after his execution.

Para Massimiliano

<ifx_nullformatifx_num_rows>
 Last updated: Thu, 19 May 2005
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: The Server Pages
Last updated: Thu May 19 17:35:34 2005 CDT