Hi there,
I tried the site assistant not too long ago to see how it actually handled the pagination code and found through my testing that it did not always produce accurate results when clicking next, first, last or previous to change the records being shown that you configure through the $max and $range variables.
You'll notice that in fmview.php they have their code that builds the pagination.And in your recordlist.php file you have code resembling:
[color:blue]
// get the skip and max values
$skip = $cgi->get('-skip');
if (isset($skip) === false) {
$skip = 0;
}
$max = $cgi->get('-max');
if (isset($max) === false) {
$max = 25;
}
I found that the weird errors occurred because their code for handling the $max and $range variables was storing them as $_SESSION variables. So leaving a page then returning to it would grab weird values and produce unexpected results. So I ended up rewriting the entire pagination code to not handle the variables as $_SESSION variables and passed them as $_GET variables. Then in my recordlist.php i changed it to check if the $_GET variables for min and max were set. If so, pass them to the pagination function and use them. If not, set the max and range to their default values. Thus making:
[color:blue]// get the skip and max values
$skip=$_GET['skip'];
if (isset($skip) === false) {
$skip = 0;
}
$max=$_GET['max'];
if (isset($max) === false) {
$max = 25;
}
Hope that might get you in the right direction.