[eluser]TheFuzzy0ne[/eluser]
OK, so your query needs to be something along these lines:
Code:
$pquery = $this->db->query("SELECT * FROM dev_posts ORDER BY id DESC LIMIT $from, 5");
With your current method, the number of results returned will match the page number. Page 100 will show up to 100 results.
At the top of your method, put this line of code:
Code:
$this->output->enable_profiler(TRUE);
When you access that controller next, you'll get a nice display at the bottom of the page outlining database queries and other useful information. You can then check see the values being passed in to the query, and ensure that they are what you were expecting.