Re: creating <prev next > link
| From: | Justin Patrin | Date: | Thu, 11 Mar 2004 17:56:35 +0000 |
| Subject: | Re: creating <prev next > link | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180200@lists.php.net to get a copy of this message | ||
Awlad Hussain wrote:
I have a search page display results in the format Search results --------------------------------------------------------------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>Product ID Name More Info--------------------------------------------------------------1 Egglink_to_more_info2 Applelink_to_more_info3 oillink_to_more_info6 meatlink_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