Commit:    bdf5297cd86e51a7fc883cc349d0012ef4f36355
Author:    Sobak <[email protected]>         Mon, 24 Mar 2014 19:34:00 
+0100
Parents:   6734f030d3f05fce207ddbef32dc46830876420b
Branches:  master

Link:       
http://git.php.net/?p=web/people.git;a=commitdiff;h=bdf5297cd86e51a7fc883cc349d0012ef4f36355

Log:
Pagination fixed

Changed paths:
  M  index.php


Diff:
diff --git a/index.php b/index.php
index 913451f..9c25bf3 100644
--- a/index.php
+++ b/index.php
@@ -36,13 +36,13 @@ $page = filter_input(INPUT_GET, "page", 
FILTER_VALIDATE_INT, array("options" =>
 <tfoot>
 <tr>
 <th>
-    <?php if ($page): ?>
+    <?php if ($page > 1): ?>
     <a href="?page=<?php echo $page-1?>">Previous page</a></th>
     <?php endif ?>
 </th>
 <th></th>
 <th>
-    <?php if ($x == 99): ?>
+    <?php if ($x == 49): ?>
     <a href="?page=<?php echo ++$page?>">Next page</a></th>
     <?php endif ?>
 </th>


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to