when you use the navigation to change the page, there should be a URL Variable to tell what page to load, for example:
on my items_results page, the URL variable looks like this:
items_results.php?pageNum_WADAitems=1&totalRows_WADAitems=14
pageNum_WADAitems=1 tells it to load page one.
Use this in an if statement when setting the row count:
<?php
$rowcount = 0;
if(isset($_GET['pageNum_WADAitems'])) $rowcount = intval($_GET['pageNum_WADAitems']) * 10;
?>