Hi
What you need is
for ($i=1; $i<=$num_pages; $i+=20) {
   // print stuff here
}

Tom

At 01:19 PM 18/05/2002, Jason Soza wrote:
>Okay, I'm apologizing right now for this, but I hope it's at least
>tolerable. I have this:
>
>for ($i=1; $i<=$num_pages; $i++) {
>         // print stuff here
>         }
>
>For each loop, I want to add 20 to $i, so after the first iteration, I have
>21, then 41, 61, etc. I've tried $i+20, $i + 20, I've tried looking in the
>manual, but I assume this is some C-type function, and I'm not familiar with
>C!
>
>Any helpers?
>
>Jason Soza
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to