Re: [PHP] PHP coding question

2001-04-06 Thread andre
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

Re: [PHP] PHP coding question

2001-04-06 Thread Gustavo Vieira Goncalves Coelho Rios
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

[PHP] PHP coding question

2001-04-06 Thread Rory O'Connor
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