query($query_limit_rs) or die("ERREUR $query_limit_rs ".mysql_error()); if (isset($_GET['totalRows_rs'])) { $totalRows_rs = $_GET['totalRows_rs']; } else { $all_rs = $dbb->query($query_rs)or die(mysql_error()); $totalRows_rs = $dbb->num_rows($all_rs); } $totalPages_rs = ceil($totalRows_rs/$maxRows_rs)-1; $queryString_rs = ""; if (!empty($_SERVER['QUERY_STRING'])) { $params = explode("&", $_SERVER['QUERY_STRING']); $newParams = array(); foreach ($params as $param) { if (stristr($param, "pageNum_rs") == false && stristr($param, "totalRows_rs") == false) { array_push($newParams, $param); } } if (count($newParams) != 0) { $queryString_rs = "&" . htmlentities(implode("&", $newParams)); } } $queryString_rs = sprintf("&totalRows_rs=%d%s", $totalRows_rs, $queryString_rs); ?> VME | Syndic Digital