[eluser]number1chump[/eluser]
Hello again
well I tried to implement your code and I got a series of errors saying that there was call function on a non-object. Also that there was an undefined property.
So then I copied and pasted your code and changed only the name of the table. But I still got the same error after copying and pasting your code. So, I dont know ...
Severity: Notice
Message: Undefined property: Posts::$Posts_model
Filename: controllers/posts.php
Line Number: 16
Fatal error: Call to a member function count_posts() on a non-object in C:\xampp\htdocs\site1\system\application\controllers\posts.php on line 16
Actually that doesnt surprise me much because I dont see how a count_all_results directed to a table name could count what. In this case it is a simple query so it is referred to the full table yes, but if there is a condition, then the count_all_results could not refer to just the table name, the results would be less than all the rows.
I am not seeing either that the pagination library has been loaded in your example