diff options
Diffstat (limited to 'includes/database.pear.inc')
-rw-r--r-- | includes/database.pear.inc | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/includes/database.pear.inc b/includes/database.pear.inc index d404f1002..0c2c72f4d 100644 --- a/includes/database.pear.inc +++ b/includes/database.pear.inc @@ -112,4 +112,20 @@ function db_affected_rows() { return $db_handle->affectedRows(); } -?>
\ No newline at end of file +/** + * Generates a limited query + * + * @param string $query query + * @param integer $from the row to start to fetching + * @param integer $count the numbers of rows to fetch + * + * @return mixed a DB_Result object or a DB_Error + * + * @access public + */ + +function db_query_range($query, $from, $count) { + return DB::limitQuery($query, $from, $count); +} + +?> |