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

<odbc_num_fieldsodbc_pconnect>
Last updated: Thu, 26 Jun 2008

odbc_num_rows

(PHP 4, PHP 5)

odbc_num_rows — Number of rows in a result

Description

int odbc_num_rows ( resource $result_id )

Gets the number of rows in a result. For INSERT, UPDATE and DELETE statements odbc_num_rows() returns the number of rows affected. For a SELECT clause this can be the number of rows available.

Parameters

result_id

The result identifier returned by odbc_exec().

Return Values

Returns the number of rows in an ODBC result. This function will return -1 on error.

Notes

Note: Using odbc_num_rows() to determine the number of rows available after a SELECT will return -1 with many drivers.



add a noteadd a note User Contributed Notes
Number of rows in a result
There are no user contributed notes for this page.




<odbc_num_fieldsodbc_pconnect>
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