I got this next prev thingy going on here 🙂
What I'm doing is I'm using form to create next prev buttons.
This is a part of SQL query:
$sql .= " LIMIT $record_start, $record_limit";
And this is the only query I use in this script.
So now I've created this:
$rows_next_from = $record_start + $record_limit;
if ($record_start < $rows) {
echo '<form method="post" action="search.php">
<input type="hidden" name="record_start" value="'.$rows_next_from.'">
<input type="hidden" name="record_limit" value="'.$record_limit.'">
<input type="image" border="0" name="next" src="next.gif" width="25" height="13">
</form>';
} else {
echo ' ';
}
And I set the limit to 1, just to see whether it works or not...
And when I press next button I just don't anything on my screen... nothing...
Any ideas?