| Author |
quick paging calculation question
|
John Schretz
Ranch Hand
Joined: Sep 10, 2008
Posts: 171
|
|
I am using the below to calculate my page links, using LIMIT in the DB portion. The total count is 127. This should generate 7 pages but it is only generatong 6 because the division is calculation 6.35. How would i push it to generate the 7th page?
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56202
|
|
The modulo operator can be used to determine if there is a remainder after division. P.S. Re-evaluate your HTML usage. The <font> tag is long deprecated in favor of CSS.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
John Schretz
Ranch Hand
Joined: Sep 10, 2008
Posts: 171
|
|
lol yea they was left from an old example i was using from my previous paging tags that i am replacing with this code [ November 24, 2008: Message edited by: John Schretz ]
|
 |
John Schretz
Ranch Hand
Joined: Sep 10, 2008
Posts: 171
|
|
Ok, Here is my solution. How does this look?
|
 |
 |
|
|
subject: quick paging calculation question
|
|
|