pavelazad Posted August 2, 2012 Share Posted August 2, 2012 Hello, I have a page (product.php) with image link which passing a value (catalog.php?cat=11987) to a page catalog.php. on catalog.php i am getting the value ($cat=$_GET['cat']. with this value I have used pagination on catalog.php. everything is fine one first page but when i clion on NEXT or page number 2 i get nothing. i understand why is happening. i think as catalog.php is getting the value from product.php and when i click page 2 or next page my query doesn't have this value. can anyone please help me to fix this. how can i hold this value for my pagination query. pls need help. thanks. Quote Link to comment Share on other sites More sharing options...
Jessica Posted August 2, 2012 Share Posted August 2, 2012 Add it to the link for next or number 2. Quote Link to comment Share on other sites More sharing options...
pavelazad Posted August 2, 2012 Author Share Posted August 2, 2012 hello, can you please write me a bit details how can i do it? i m bit new in php. thanks Quote Link to comment Share on other sites More sharing options...
Jessica Posted August 2, 2012 Share Posted August 2, 2012 How did you create the links already? Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted August 2, 2012 Share Posted August 2, 2012 See my replies in the following thread, on how you can keep your $_GET['cat'] value and build the pagination links - http://forums.phpfreaks.com/index.php?topic=363172.0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.