creating <prev next > link

From: Date: Thu, 11 Mar 2004 13:32:50 +0000
Subject: creating <prev next > link
Groups: php.general 
Request: Send a blank email to php-general+get-180136@lists.php.net to get a copy of this message
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

« previous php.general (#180136) next »