This is a discussion on "page integer problem" within the PHP Forum section. This forum, and the thread "page integer problem are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
page integer problem
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
page integer problem
Basically ive written code that looks in a directory and lists all the jpeg files.
I have 13 files however i only want 12 to a page.
But it sets $pages = 1.08333333333. which is correct but i want the next integer. So ive tried
can anyone help me to find the next integer? |
|
|
|
|||
|
Re: page integer problem
Hello,
Use ceil() to round a number up. ceil($pages) Cheers, Jim. |
![]() |
| Tags |
| page, integer, problem |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP integer form validation | CloudedVision | PHP Forum | 3 | Feb 24th, 2008 20:09 |
| problem accessing page | number9 | Starting Out | 4 | May 25th, 2007 05:30 |
| Problem with my contact page | tlynn721 | Classic ASP | 5 | Aug 9th, 2005 00:50 |
| Assign string values to integer values of a session variable | Andy K | Classic ASP | 1 | Jul 13th, 2005 08:29 |