cpd Posted December 13, 2008 Share Posted December 13, 2008 Im trying to make the page numbers at the bottom of the page and make them into links aswell but i cant seem to do it. if(!isset($_GET['page']) || $_GET['page'] == "") { $PAGE = 1; } else { $PAGE = $_GET['page']; } if(!isset($_GET['page']) || $_GET['page'] == "") { $OFFSET = 0; } else { $OFFSET = $_GET['page'] *3; } $Aircraft = mysql_query("SELECT * FROM `fleet` ORDER BY `tbl_id` ASC LIMIT 3 OFFSET ".$OFFSET); $CountQry = mysql_query("SELECT * FROM `fleet` ORDER BY `tbl_id` ASC"); $Count = mysql_num_rows($CountQry); <? for($i=1;$i<=($Count/3)+1;$i++) {if($i==$PAGE) {print "[".$i."] ";} else {print "<a href=\"index.php?content=fleet%&page=".$i."\">".$i."</a> ";} ?> Can anyone see why? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.