DB_Pager handles all the stuff needed for displaying paginated results from a db query of PEAR::DB, including fetching only the needed rows and giving extensive information for helping build an HTML or GTK query result display.
NB: This package is deprecated in favour of the Pager package. In particular, have a look at the Pager_Wrapper example included with Pager, and read this paragraph or this tutorial.