PHP: ifx_num_rows - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ifx_pconnect ifx_num_fields

Last updated: Fri, 26 Jan 2007

view this page in

# ifx_num_rows

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

ifx_num_rows -- Count the rows already fetched from a query

## Description

int ifx_num_rows ( resource result_id )

Gives the number of rows fetched so far for a query with `result_id` after a ifx_query() or ifx_do() query.

add a note User Contributed Notes
ifx_num_rows
icespawn11882 at hotmail dot com
20-Apr-2005 03:56
`This function give always 0 as result so I used ifx_affected_rows to count rows of a query's result...
An example of this function:
$conn_id = ifx_connect("db", "user", "password");
$res_id = ifx_query("select * from systables", $conn_id);
$res = ifx_affected_rows($res_id);
echo $res;
$res contains the number of rows in the result of the query after his execution.
Para Massimiliano`
add a note
ifx_pconnect ifx_num_fields

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 09:32:46 2007 PST