This topic is locked

Change records per page

9/18/2017 3:38:38 AM
PHPRunner General questions
J
jrlozano author

I'd like to change the value or "records per page" dinamically. My idea is two different menu options showing different records per page (1 and 2) and no option to the user to change it. 1 option is used to see single record information and 2 option will be used to compare the records. I'd like not to duplicate the page with a view from the original table.
Thanks in advance

romaldus 9/18/2017

Do you mean compare 2 records side by side? Just use vertical view in list page

J
jrlozano author 9/18/2017



Do you mean compare 2 records side by side? Just use vertical view in list page


Yes, Romaldus. Thanks. I've this issue solved. My problem is selecting 1 row per page or 2 rows per page by code.

For example, a menu option called "view agenda" opens agenda_list.php?num_rec=1 and another menu option called "compare agenda" opens agenda_list.php?num_rec=2 and the application changes the number of records shown according to "num_rec" variable.

I hope I've explained in my poor English