Re: Loop error?
| From: | PHP List | Date: | Wed, 15 Aug 2001 00:00:45 +0000 |
| Subject: | Re: Loop error? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62717@lists.php.net to get a copy of this message | ||
Oops, well, that is just mental.
Must be getting tired or something, yes, that's it :)
Thanks.
----- Original Message -----
From: "Gyozo Papp" <pgerzson@freestart.hu>
To: "PHP List" <php_list@ibcnetwork.net>; "php"
<php-general@lists.php.net>
Sent: Tuesday, August 14, 2001 4:58 PM
Subject: Re: [PHP] Loop error?
> Hi,
>
> clear that semicolon(;) after the while statement!
>
> this makes the trick
> ----- Original Message -----
> From: "PHP List" <php_list@ibcnetwork.net>
> To: "php" <php-general@lists.php.net>
> Sent: 2001. augusztus 15. 01:49
> Subject: [PHP] Loop error?
>
>
> Hi,
> Can anyone tell me why this is a never ending loop?
>
> $i=0;
> $count = 1;
> while ($count > $i);
> {
> echo "$i <br>";
> $i++;
> }
> Chris
>