db.prev()

Syntax
long db.prev( long table_id [, long lock] )


Description
This reads the previous record from a specified table. It uses the current index to search the table. If there is no current record, the function returns an error message.


Arguments
table_id The table ID, as returned by db.bind().
lock By default, the record is not locked before reading. Use this optional argument to apply a lock to the record. The possible values are:
DB.LOCK lock record for update
DB.DELAYED.LOCK apply a delayed lock to the record; the lock is 
applied immediately before the update action


Return values
    0 success
<>0 error


Related Post:

People who read this post also read :



0 comments:

Post a Comment

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More