So first of let me past my code
<div class="Page_Navigation"><?php
$sql = "SELECT id, name, banner, description, sponsor, votes, hits FROM websites";
$rs_result = mysql_query($sql); //run the query
$total_records = mysql_num_rows($rs_result); //count number of records
$total_pages = ceil($total_records / $num_rec_per_page); ?>
<div class="Page_Navigation"><?
echo "<a href='index.php?page=1'>".'<'."</a> "; // Goto 1st page
for ($i=1; $i<=$total_pages; $i++) {
echo "<a href='index.php?page=".$i."'>".$i."</a> ";
};
echo "<a href='index.php?page=$total_pages'>".'>'."</a> "; // Goto last page
?></div>
And here is an image of what it looks like:
And this is what it is supposed to be:
Not only that, but the links are dead:
page=