Pagination problem! |
[eluser]WebbHelp[/eluser]
Hi! This is the first time I using pagination and I thought it would work but... it didn't! Controller file: Code: $images = $this->db->query("SELECT * FROM images WHERE page = ". intval($id->id)); View file: Code: echo $this->pagination->create_links(); In the controller file: First I load the class. Set the base_url and I checked that: http://www.example.se/cms/index.php/page...gallery/23 //This is the url to the function in the controller with a segment = 23 total_rows = Count all rows in the table per page = I just want to show 2 rows Then I initialize it... funny The problem is: It doesn't matter if i write in the adress field: you can see the picture here: http://image.webbhelp.se/error.jpg The number in the adressfield is 2 now, if I change it to something else, the number 3 on page, sitll beeing fat/strong styled. If I don't write any number/segment, I only got errors! Please, can you help me wtih this! Thanks //WebbHelp |
Messages In This Thread |
Pagination problem! - by El Forum - 12-13-2009, 02:29 PM
Pagination problem! - by El Forum - 12-13-2009, 03:24 PM
Pagination problem! - by El Forum - 12-13-2009, 05:31 PM
Pagination problem! - by El Forum - 12-14-2009, 10:12 AM
Pagination problem! - by El Forum - 12-14-2009, 01:00 PM
Pagination problem! - by El Forum - 12-14-2009, 02:54 PM
Pagination problem! - by El Forum - 12-14-2009, 04:02 PM
Pagination problem! - by El Forum - 12-14-2009, 04:07 PM
Pagination problem! - by El Forum - 12-14-2009, 04:11 PM
Pagination problem! - by El Forum - 12-14-2009, 04:12 PM
Pagination problem! - by El Forum - 12-14-2009, 04:15 PM
Pagination problem! - by El Forum - 12-14-2009, 04:23 PM
Pagination problem! - by El Forum - 12-14-2009, 04:31 PM
Pagination problem! - by El Forum - 12-14-2009, 04:50 PM
|