Try this :
if($page_num % 8 == 0) {
do this
}
or to make it a bit more obvious:
if(($page_num % 8) == 0) {
do this
}
This way the "if" statement is executed only when
the remainder of $page_num divided by 8 is equal to zero,
i.e. $page_num is a multiple of 8.
>
> if ($page_num is a mul
Rory O'Connor wrote:
>
> I'm not a real programmer, so I am wondering if anyone can help me translate
> this psuedo-code into php code:
>
> if ($page_num is a multiple of 8) {
>
> do this
>
> }
>
> If you want to know what I'm trying to do...
> I have a left frame showing a re
I'm not a real programmer, so I am wondering if anyone can help me translate
this psuedo-code into php code:
if ($page_num is a multiple of 8) {
do this
}
If you want to know what I'm trying to do...
I have a left frame showing a recordset of 8 records at a time. the frame
on
3 matches
Mail list logo