Gah....
I have this code in my page:
<?php
if ($_GET['page_num'] != 1){
print ("<a href=\"tut_self.php?total_pages=".$_GET['total_pages']."&page_num=".$_GET['page_num']--."\">Previous</a>");
}
print (" - ");
if ($_GET['page_num'] != $_GET['total_pages']){
print ("<a href=\"tut_self.php?total_pages=".$_GET['total_pages']."&page_num=".$_GET['page_num']++."\">Next</a>");
}
?>
The problem is;
the 'Previous' button links to the same page ($page_num stays the same), and the 'Next' button links to the previous page ($page_num is substracted by 1).
What the hell is going on here???
O_o