Re: How can you determine if you on the last result?

From: Date: Wed, 28 Nov 2001 22:27:34 +0000
Subject: Re: How can you determine if you on the last result?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-75951@lists.php.net to get a copy of this message
You could use whatever OCI function returns the number of rows returned and then keep a counter or you could do it this way: while(OCIFetchInto ($curs, $data)) { # do normal stuff for *ALL* rows } # do some stuff with $data which now contains the last row. -philip On Wed, 28 Nov 2001, J. Anderson Scarbrough wrote: > If I execute a query and fill a resultset, how can i tell if I am on the > last result in the set? I want to something like: > > while(OCIFetchInto ($curs, $data)) { > > if($isLastRecord) > // do something > } > > Thanks. > > Anderson > > _________________________________________________________________ > Get your FREE download of MSN Explorer at > http://explorer.msn.com/intl.asp > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#75951) next »