PHP Pages Tutorial] To get info from mysql table with previous/next buttons to see more to prevent 1000 results on one page, limiting it to 20, etc.
**** Link fixed
What if $start is 0...$previous is set to -20 🙂
Perhaps:
$start >= 20 ? $previous = $start - 20 : $previous = 0; ( $start + 20 ) > ( count($totalrows)-1 ) ? $ending = count($totalrows)-1 : $ending = $start + 20;
🙂
ah well.. its just a tutorial.. i could make it limit on number of articles and stuff with pages but its a tutorial to get people started.
hey, thanks! it's shorter that the last script that it i found.
i know, my knowledge on pagination is way beyond worst sinking
did you show to how to display?
welll
echo "<a href=\"" . $url . "\">" . $name . "</a><br>";
Where does the variable totalrows come from?
Joe