downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<ifx_nullformatifx_num_rows>
Last updated: Thu, 26 Jun 2008

ifx_num_fields

(No version information available, might be only in CVS)

ifx_num_fields — Returns the number of columns in the query

Description

int ifx_num_fields ( resource $result_id )

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

Parameters

result_id

result_id is a valid resultid returned by ifx_query() or ifx_prepare() (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() 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



add a noteadd a note User Contributed Notes
Returns the number of columns in the query
There are no user contributed notes for this page.




<ifx_nullformatifx_num_rows>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs