Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : Oracle Functions [deprecated] : ora_numrows

ora_numrows

Returns the number of rows (PHP 4, PHP 5 <= 5.0.5)
int ora_numrows ( resource cursor )


Code Examples / Notes » ora_numrows

christopher dot jones

The "oracle" extension has been obsoleted and replaced by the "oci8" extension. Use oci_num_rows() as a replacement for ora_numrows().

help

ora_rows returns the row number of the actual fetched cursor.
So you can control the position of the cursor in the whole fetched data for the cursor.


coscatmu

It is important to note that this function acts more as a counter of the number of rows fetched from the cursor.  If you execute this prior to processing the cursor you will always get a 0 for an answer.
The online manual and one of my PHP reference books does not make that distinction.  Some may expect this to count the number of rows in the cursor prior to processing.  This function does not do that.


Change Language


Follow Navioo On Twitter
ora_bind
ora_close
ora_columnname
ora_columnsize
ora_columntype
ora_commit
ora_commitoff
ora_commiton
ora_do
ora_error
ora_errorcode
ora_exec
ora_fetch_into
ora_fetch
ora_getcolumn
ora_logoff
ora_logon
ora_numcols
ora_numrows
ora_open
ora_parse
ora_plogon
ora_rollback
eXTReMe Tracker