I have created a simple cms and I need to have an archive page that shows ten articles per page, with a "< next | previous >" pagination system or similar.
I have spent a long time away from php, and would dearly love it if somebody could show me how to do it, here is what I have now;
PHP Code:<?php
include "admin/dbconnect.php";
include "includes/format_date.php";
$result = mysql_query("SELECT * FROM news ORDER BY id DESC LIMIT 0,5");
//echo's the articles, and even properly indents the code
while($row = mysql_fetch_array($result))
{echo "
<p><em>".$row['shortdescr']."</em></p>
<p>".$row['title']."</p>
<p>".$row['source']."</p>
<p><strong>Posted on:</strong> ".$row['date']."</p>
<hr />
";
}
mysql_close($conn);
?>






Bookmarks