[snip] 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?? [/snip] Since the array has an index you can do this --- (pseudocode, you will know which one is clicked) array_count = count(array) if(0 == array_index){ // no <previous to display display next> = array_index++ } elseif(0 < array_index && array_index < array_count){ // display both display <prev = array_index-- display next> = array_index++ } elseif(array_count == array_index){ // no next> to display display <prev = array_index-- } HTH! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php