PDA

View Full Version : Navigation for Search Results



avorob
02-26-2003, 10:22 AM
I suggest to consider echoing search result page numbers in listsearch.php in the following format:
<< 1 | 2 | 3 | 4 | ..... | n | >>

i.e. >>, << for next/previous page
in bold and no HREF for current page
the rest in HREF to respective pages

Thanks.

suzkaw
02-27-2003, 01:48 AM
Just open up main.php and find:


function next_prev&#40;$num_rows, $cur_page, $guidestring&#41;
&#123; // handles multiple page listings

then go down till you see:


echo "<b><a href=\"$PHP_SELF?cur_page=".&#40;$i-1&#41;."&amp;$guidestring\">$i</a></b>";

and take out the <a tag. Then keep going down and do the same thing. If you do this I would also leaving the old and just commenting it out.

avorob
02-27-2003, 12:43 PM
I didn't realize that it kicks in if there are more than 2 pages of search results. Thanks.