Serial No in Pagination library |
[eluser]aruntvla[/eluser]
when i use Pagination library , seial no in each page again starting with 1,2,3...plz give me an idea to display it in an order.....
[eluser]aruntvla[/eluser]
Code: <?php When i running this code it gives me serial no as 1,2,3,...but adding pagination to this code for each page it again starts with 1,2,3....plz give me a suggestion to this problem........
[eluser]Rahul Anand[/eluser]
http://ellislab.com/codeigniter/user-gui...ation.html check this out.... $this->load->library('pagination'); $config['base_url'] = 'http://example.com/index.php/test/page/'; $config['total_rows'] = '200'; $config['per_page'] = '20'; $this->pagination->initialize($config); echo $this->pagination->create_links(); .................................................. you have to mention the total number of rows and also the no of records to be displayed per page.
[eluser]aruntvla[/eluser]
Anand.......my controller code look like this Code: <?php but how to display serial no in view page??????? :roll: |
Welcome Guest, Not a member yet? Register Sign In |