Welcome Guest, Not a member yet? Register   Sign In
Pagination problem : Only even page number
#6

[eluser]anggie[/eluser]
[quote author="coldautumn" date="1220421104"]
$limit=$this->uri->segment(3);

if($limit==''){
$limit=1;
}
$limit=($limit-1)*2;

$data['query']= $this->db->get('posting',2,$limit);


Why are you doing this, this is causing the display to be even or odd. If uri->segment(3) is empty set 0.Send only $config['per_page'] & uri->segment(3) values to function or get query, where result is generated.

Hope this might solve it.[/quote]
Thanks before.
But I cannot understand your answer. I do that for my query (for page offset)...If you don't mind, could you give me your example using pagination class?


Messages In This Thread
Pagination problem : Only even page number - by El Forum - 09-02-2008, 10:19 AM
Pagination problem : Only even page number - by El Forum - 09-02-2008, 05:45 PM
Pagination problem : Only even page number - by El Forum - 09-02-2008, 05:54 PM
Pagination problem : Only even page number - by El Forum - 09-02-2008, 06:27 PM
Pagination problem : Only even page number - by El Forum - 09-02-2008, 06:51 PM
Pagination problem : Only even page number - by El Forum - 09-02-2008, 08:04 PM
Pagination problem : Only even page number - by El Forum - 09-02-2008, 08:25 PM
Pagination problem : Only even page number - by El Forum - 09-03-2008, 12:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB