Welcome Guest, Not a member yet? Register   Sign In
How can Do this in Pagination
#10

[eluser]Sumon[/eluser]
Lets have a close look the following line of codes

Code:
$all_result_set = $this->cgiproxies_model->get_cgiproxies('',$config['per_page'],$this->uri->segment(3));
$this->db->orderby("datestamp" , "desc");
$config['total_rows']=$all_result_set['num_rows'];
$data['results']=$all_result_set['result'];

Seems to me you have written $this->db->orderby("datestamp" , "desc"); in wrong place. Try to place it in model function get_cgiproxies(......

Let us know what's going on..


Messages In This Thread
How can Do this in Pagination - by El Forum - 09-06-2008, 09:04 PM
How can Do this in Pagination - by El Forum - 09-07-2008, 12:11 AM
How can Do this in Pagination - by El Forum - 09-07-2008, 12:23 AM
How can Do this in Pagination - by El Forum - 09-07-2008, 12:47 AM
How can Do this in Pagination - by El Forum - 09-07-2008, 12:51 AM
How can Do this in Pagination - by El Forum - 09-07-2008, 12:52 AM
How can Do this in Pagination - by El Forum - 09-07-2008, 01:01 AM
How can Do this in Pagination - by El Forum - 09-07-2008, 01:14 AM
How can Do this in Pagination - by El Forum - 09-07-2008, 01:20 AM
How can Do this in Pagination - by El Forum - 09-07-2008, 01:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB