i have a where clause that shows all categorys where the id=the input value from the previouse page. the pagination works giving me the right amount of pages and the where claus
Add the category to the links:
$cat = isset($_REQUEST['category']) ? "&category=" . $_REQUEST['category'] : ''; ?> <div id="pagintation"> <?php for($x = 1; $x <= $pages; $x++): ?> <a href="?page=<?php echo $x . $cat; ?>"><?php echo $x; ?></a> <?php endfor;?>