RE: [PHP] Feelin' dumb...
| From: | Jason Soza | Date: | Sat, 18 May 2002 03:31:25 +0000 |
| Subject: | RE: [PHP] Feelin' dumb... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-98208@lists.php.net to get a copy of this message | ||
Well, I tried that but the page doesn't finish loading... I.e. a script that
normally doesn't take more than a second to load just sits there. With $i++,
everything's fine - with $i+20, the browser says it's loading, but all I
have is a white screen for about 30 seconds... Then it times out.
-----Original Message-----
From: Richard Baskett [mailto:php@baskettcase.com]
Sent: Friday, May 17, 2002 7:15 PM
To: Jason Soza; PHP General
Subject: Re: [PHP] Feelin' dumb...
Hmm... Wouldn¹t you just do this?:
for ($i=1; $i<=$num_pages; $i+20) {
// print stuff here
}
Rick
"The vision must be followed by the venture. It is not enough to stare up
the steps - we must step up the stairs." - Vance Havner
> From: "Jason Soza" <solja@gci.net>
> Date: Fri, 17 May 2002 19:19:28 -0800
> To: <php-general@lists.php.net>
> Subject: [PHP] Feelin' dumb...
>
> 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