Php Codeginter-按相反顺序分页
我正在使用Codegniter分页库进行分页。一切正常。但我想按相反的顺序分页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
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请详细说明我的问题。我的问题与其他用户给出的评论大不相同。