Simple pager php previous and next
<p>I have read a bunch of tools and I copied some code but the code is half a mile! :)
I was wondering if its not possible to make a small one like this (you'll get my point)
Im just after a small pager with previous and next links to display the next page of results...</p>

<pre><code>&lt;?php

//pagination

$pagelimit = 5

$result = mysql_query("SELECT * FROM blog ORDER BY id DESC LIMIT $pagelimit")
or die(mysql_error());

while($row = mysql_fetch_array( $result )) {

echo $row['title'];

}

echo "&lt;a href='index.php?page=" . $row[$id - $pagelimit] . "'&gt; Previous&lt;/a&gt;&lt;/li&gt;";
echo "&lt;a href='index.php?page=" . $row[$id + $pagelimit] . "'&gt; Next&lt;/a&gt;&lt;/li&gt;";

?&gt;
</code></pre>

<p>or something similar...that works! :)</p>
