You are telling the pagination library to use $config'uri_segment' = '2 the second segment of your uri.
You are telling the pagination library to use $config'uri_segment' = '2'; - the second segment of your uri. When this is your url: localhost/sundial/Student_fee_status/index/1006/" rel="nofollow">localhost/sundial/Student_fee_status/ind... I am guessing this is your base_url: localhost/sundial/ In this case your segments are: Student_fee_status - your controller index - the controllers method you are calling 1006 - the argument you are calling the controllers method with this should be the argument for pagination Try this $config'uri_segment' = '4'; instead of $config'uri_segment' = '2'; edit: $data'records'= $this->Mod_student_fee_status->fee_status($id,$config'per_page',$config'uri_segment'); I think this line contains another error. You pass your model the information which uri_segment is used by the pagination library.
That should be 4 now. However, your model uses this value to specify an offset in your query. This means you always put an offset of 4 into your query.
But I think what you really want to do is, pass the model the VALUE of the 4th uri_segment. I would try this instead: $data'records'= $this->Mod_student_fee_status->fee_status($id,$config'per_page',$this->uri->segment($config'uri_segment')).
Sorry walfish3d, I thought your suggestion worked for me but after a while I figured it out that the next button is working but the database values of the first page is not changing. Do you have any idea what is wrong with my code? Thanks in Advance :) – Srijon Nov 28 at 17:45 edited my answer.
Hope it helps. – walfish3d Nov 28 at 18:24 Thank you very very much walfish3d. Its working just the way I wanted.
I have been trying to fix this for two days. You are great man...:) – Srijon Nov 28 at 18:30 glad I could help. I had basically the same errors on my first try with the pagination library :) – walfish3d Nov 28 at 18:37.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.