The code generated by the Dreamweaver recordset navigation bar automatically adds any existing variables to the end of the query string. The following code (just above the DOCTYPE) comes from a recordset navigation bar on one of my pages:
$queryString_listAuthors = "";
if (!empty($_SERVER['QUERY_STRING'])) {
$params = explode("&", $_SERVER['QUERY_STRING']);
$newParams = array();
foreach ($params as $param) {
if (stristr($param, "pageNum_listAuthors") == false &&
stristr($param, "totalRows_listAuthors") == false) {
array_push($newParams, $param);
}
}
if (count($newParams) != 0) {
$queryString_listAuthors = "&" . htmlentities(implode("&", $newParams));
}
}
$queryString_listAuthors = sprintf("&totalRows_listAuthors=%d%s", $totalRows_listAuthors, $queryString_listAuthors);
I haven't tested this, but to eliminate the extra variables in the query string, comment out the whole of the if statement like this:
$queryString_listAuthors = "";
/*
if (!empty($_SERVER['QUERY_STRING'])) {
$params = explode("&", $_SERVER['QUERY_STRING']);
$newParams = array();
foreach ($params as $param) {
if (stristr($param, "pageNum_listAuthors") == false &&
stristr($param, "totalRows_listAuthors") == false) {
array_push($newParams, $param);
}
}
if (count($newParams) != 0) {
$queryString_listAuthors = "&" . htmlentities(implode("&", $newParams));
}
}
*/
$queryString_listAuthors = sprintf("&totalRows_listAuthors=%d%s", $totalRows_listAuthors, $queryString_listAuthors);
You will need to do that for each of your recordset navigation bars.