sorry g alright then...
assuming you have a query on your search (search.php) page. it may look like:
mysql_query( "SELECT * FROM mytable WHERE text LIKE '%{$searchTerm}' LIMIT $next, 2" );
ok - you have a form where you can enter your search-term. So $searchTerm is (next is zero):
$searchTerm = $_POST['searchterm'];
$next = 0;
you've submitted the search-term "PHP", the query runs and outputs the first results and the next-link. This link should look like this now:
<a href="search.php?searchterm=PHP&next=2">next</a>
Just generate it dynamically:
<a href="search.php?searchterm=<?=$searchterm?>&next=<?=$next?>">next</a>
now you're in the search.php again. the only thing that has changed is that the search term is not delivered by POST like the first time but by GET. So you have to change your code to:
if( isset($_GET['searchterm']) )
{
$searchTerm = $_GET['searchterm'];
}
else
{
$searchTerm = $_POST['searchterm'];
}
if( isset($_GET['next']) )
{
$next = $_GET['next'];
}
else
{
$next = 0;
}
The query stays the same.
Hope that helps...