There were 5 pages in one of my tables, I clicked the
last record button, it went to page 4 not page 5, it
kept doing this.
The only way I could get to page 5, is by using the
next button, or by selecting page 5 from the dropdown
box. but not by using the last record button like I
expected.
-------------------
Later on, more data was added to the same table, and it
became 6 pages, but like before, it was showing the
same behaviour, this time, clicking last record would
go to page 5, not page 6 like expected...
Logged In: YES
user_id=781727
Actually, not even that, the only way I can get to the last
page, is by using the dropdown box for page number, not
using the next button like I said before, because the next
button does not display on the second to last page at all.
Logged In: YES
user_id=210714
I can reproduce this problem. However, here, if I click on
the last record (>>) button or if I choose the last page
from the Page dropdown box, I see the end of the table but
not the same number of rows. Can you confirm?
Logged In: YES
user_id=224032
Hi,
I think the failure is in file libraries/display_tbl.lib.php on line
#327:
Please replace
<input type="hidden" name="pos"
value="<?php
echo $unlim_num_rows - $session_max_rows;
?>" />
with
<input type="hidden" name="pos"
value="<?php
echo ((@ceil($unlim_num_rows / $session_max_rows)- 1)
* $session_max_rows);
?>" />
and it should work.
Regards
Michael
Logged In: YES
user_id=418833
Michael,
what kind of errors do you want to suppress with the '@'
character?
Logged In: YES
user_id=224032
Hi Alexander,
Sorry, I've only copied this little function from the pages-
dropdownlist (some lines below). There is '@' used before ceil
(...).
I think it should suppress the php-error 'division by zero'.
This maybe happen, if we have '0' rows. I know, if we
have '0' rows the page shouldn't be loaded. But I feel better
with '@' ;)
Regards Michael
Logged In: YES
user_id=210714
Michael's patch merged.