Hi Joe, the probelm is code order.
The Recordset code that defines $totalRows_WADAevents is after this block of code that is using it:
<?php
$queryString_WADAevents = "";
if (!empty($_SERVER['QUERY_STRING'])) {
$params = explode("&", $_SERVER['QUERY_STRING']);
$newParams = array();
foreach ($params as $param) {
if (stristr($param, "pageNum_WADAevents") == false &&
stristr($param, "totalRows_WADAevents") == false) {
array_push($newParams, $param);
}
}
if (count($newParams) != 0) {
$queryString_WADAevents = "&" . htmlentities(implode("&", $newParams));
}
}
$queryString_WADAevents = sprintf("&totalRows_WADAevents=%d%s", $totalRows_WADAevents, $queryString_WADAevents);
?>
move the WADAevents code before this code so the $totalRows_WADAevents variable will created before it is being used.