Membership
Main Menu
Forum Boards
Stats
- 18 tutorials
- 72,291 members
- 695,910 forum posts
- 11 blog posts
Tutorials
PHP Basic Pagination
by Crayon Violent on Jun 18, 2008 6:11:55 PM
Views: 45314
The next thing we want to do is check to make sure it's a valid page number. We don't want users trying manually enter in page 401 in our 400 page book, just because they hate the ending and refuse to believe it ended that way omg what were we thinking nono there's GOT to be another page stuck together or something right??? So yeah... if they enter a negative number or some number higher than our total pages, it defaults to 1 or $totalpages, respectively.
Comments
1. Ben Smithers on Jun 19, 2008 8:47:14 AM
2. Rezert on Jun 20, 2008 8:48:44 AM
3. Crayon Violent on Jun 20, 2008 10:35:51 AM
4. Rodney Moore on Jun 20, 2008 3:45:30 PM
5. Rezert on Jun 20, 2008 7:38:02 PM
6. norwid on Jun 22, 2008 1:50:14 PM
7. Crayon Violent on Jun 22, 2008 4:48:14 PM
8. Christopher Burnside on Jun 24, 2008 7:07:35 AM
9. webent on Jul 3, 2008 4:08:16 PM
10. petitchevalroux on Aug 1, 2008 8:02:26 AM
11. vherhonne on Aug 2, 2008 12:40:41 PM
12. GreenUser on Aug 15, 2008 3:19:29 PM
13. tmallen on Sep 1, 2008 8:50:48 PM
14. Fluoresce on Sep 16, 2008 3:36:32 PM
15. Crayon Violent on Sep 17, 2008 5:34:48 PM
16. biciodark on Oct 14, 2008 8:20:25 PM
17. hakmir on Oct 16, 2008 5:52:14 PM
18. Crayon Violent on Oct 16, 2008 6:28:17 PM
19. Kayosz on Oct 27, 2008 10:19:05 AM
20. Crayon Violent on Oct 27, 2008 11:02:34 AM
21. yepwingtim on Oct 31, 2008 7:35:49 PM
22. yepwingtim on Nov 1, 2008 3:15:23 AM
23. Crayon Violent on Nov 2, 2008 1:37:43 AM
Login or register to post a comment.
