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 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 the right shows the detail (more info) of one record at a time. if the
> user clicks "next record" in the right frame and the record goes beyond
the
> 8 on the left, I want to be able to refresh the left frame to show the
next
> 8 records.
>
> Thanks!
>
> Rory
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]