- Oops. The db_query_range() query got added twice.
parent
96a45ecba6
commit
3dd7d9b47d
|
@ -117,23 +117,6 @@ function db_affected_rows() {
|
|||
return mysql_affected_rows();
|
||||
}
|
||||
|
||||
/**
|
||||
* 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) {
|
||||
$query .= " LIMIT $from, $count";
|
||||
// TODO: debug version
|
||||
return db_query($query);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates a limited query
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue