I have a search page display results in the format
Search results -------------------------------------------------------------- Product ID Name More Info -------------------------------------------------------------- 1 Egg link_to_more_info 2 Apple link_to_more_info 3 oil link_to_more_info 6 meat link_to_more_info ... ... ......
I am also putting the results in a array.. and putting the array into a session..
When someone click on one of the product for more info, how can i create a < prev next > link to go to other product pages .. rather than clicking back button and then clicking on the link_to_more_info?
Just say, Dave clicks on the apple to find out more info of this product.. on the product page how do i generate a <prev link to take Dave to Egg details and next> to take Dave to oil and once Dave is reading oil product details.. he should have <prev link to Apple and next > to meat
any suggestion how i can creating this nav links from the array??
many thanks Huzz
PEAR's Pager *may* be helpful here... You will probably need to store the search array in a session to remember it, though.
http://pear.php.net/package/Pager
-- paperCrane <Justin Patrin>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php