That worked fine thanks. What about this one? I modified something for the filter to say filter=1. But I'm not sure how to get it set to 1 in this line of code.
echo '<a href="main.php?navtype=products&category=' . $category . '&filter=1".' > ' . $rowcategory['Category'] . '</a>'.' > '.$row['Product'];