Welcome Guest, Not a member yet? Register   Sign In
Pagination problem, total_rows
#4

[eluser]TheFuzzy0ne[/eluser]
Oh yes. Sorry, I missed that.

Can you confirm that $num actually contains the expected value?

There should be no need for any hacking of the post method. You can simply add a get_all_post() method to the input class, or better yet, if you've enabled global XSS filtering, you can just use $_POST as it is.

OK, I'm a bit confused. Please can you confirm:
1) How many results you have in your database
2) How many you see on the first page
3) How many you see on the next page (and possible more information as to the position of the result in your table).
4) Where $num is set, and how it's set.

In the interim, you can enable the profiler by adding:
Code:
$this->output->enable_profiler(TRUE);
To your controller constructor, or the start of your controller method. This will show you what queries are being run, and hopefully make clear to you where you are going wrong.


Messages In This Thread
Pagination problem, total_rows - by El Forum - 06-13-2009, 11:10 AM
Pagination problem, total_rows - by El Forum - 06-13-2009, 11:26 AM
Pagination problem, total_rows - by El Forum - 06-13-2009, 12:07 PM
Pagination problem, total_rows - by El Forum - 06-13-2009, 01:02 PM
Pagination problem, total_rows - by El Forum - 06-13-2009, 01:26 PM
Pagination problem, total_rows - by El Forum - 06-13-2009, 01:39 PM
Pagination problem, total_rows - by El Forum - 06-13-2009, 03:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB