dismiss Step into the future! Click here to switch to the beta php.net site
downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

ifx_num_rows> <ifx_nullformat
[edit] Last updated: Fri, 28 Jun 2013

view this page in

ifx_num_fields

(PHP 4, PHP <=5.2.0)

ifx_num_fieldsReturns 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 note add a note User Contributed Notes ifx_num_fields - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites