you use
LIMIT 0, 10 ...... same as your query, returns 10 last: 1-10
LIMIT 10, 10 ...... returns 10 before .............. ie 11-20
LIMIT 20, 10 ..... returns 10 before that ie result rows: 21-30
You can use variables $start, $num, where $num is how many to display each time
<?php
$start = 10; $num = 10;
// gets the 10 before the last 10
$record = mysql_query("SELECT username, message, created_at, competition_cat, prize_cat
FROM web_posts
ORDER BY created_at DESC LIMIT $start, $num");
?>
You can make link
<a href="display.php?start=0">First</a>
<a href="display.php?start=1">Previous</a>
<a href="display.php?start=2">Previous2</a>
$start = 10 * $_GET['start'];
$num = 10;
$record = mysql_query("SELECT username, message, created_at, competition_cat, prize_cat
FROM web_posts
ORDER BY created_at DESC LIMIT $start, $num");