Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/288.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Codeginter-按相反顺序分页_Php_Codeigniter_Pagination - Fatal编程技术网

Php Codeginter-按相反顺序分页

Php Codeginter-按相反顺序分页,php,codeigniter,pagination,Php,Codeigniter,Pagination,我正在使用Codegniter分页库进行分页。一切正常。但我想按相反的顺序分页 For Ex : If there are 100 records, 10 records per page. Right now first page display 1 to 10 records. But I want first page should display 91 to 100 records. And second page will display 81 to 90 and so on.. W

我正在使用Codegniter分页库进行分页。一切正常。但我想按相反的顺序分页

For Ex : If there are 100 records, 10 records per page.
Right now first page display 1 to 10 records.
But I want first page should display 91 to 100 records. And second page will display 81 to 90 and so on.. 
Without changing the mysql Query.
'SELECT * FROM tbl_user ORDER BY id ASC'

我应该在库中更改什么。

预测代码。。。。。。。。。。。。。等几年。使用
$this->db->order\u by()
我不希望记录按顺序排列。我想要反向的页面。如果你不想搞乱SQL中的顺序,一个想法而不是答案:尝试使用jQuery插件。@AbdullaNilam请详细说明我的问题。我的问题与其他用户给出的评论大不相同。