The key to the next&prev problem is using LIMITs in your queries. If put LIMIT n,m at then end of your query, it will return m results, starting at #n.
So let's say you have a string $search_text, and a variable $start_list. Something like this works fine...
<?php
if (isset($next_submit)) { $start_list+=10; }
elsif (isset($prev_submit) && $start_list > 10) { $start_list-=10; }
else { $start_list=0; }
//do you query here
//print out results...
//bla bla bla..
//at bottom of page have this form
?>
<form method=post action="<?php echo $PHP_SELF; ?>">
<input type=hidden name=search_text value="<?php echo $search_text; ?>">
<input type=hidden name=start_list value="<?php echo $start_list; ?>">
<input type=submit name=next_submit value="Next>>">
<input type=submit name=prev_submit value="<<Prev">
</form>
Hope that gives you an idea....I just figured it out.
---John Holmes...