because you have a semicolon after while ($count > $i) so that it never
increments $i. :-) oops
On Tue, 14 Aug 2001, PHP List wrote:
> Hi,
> Can anyone tell me why this is a never ending loop?
>
> $i=0;
> $count = 1;
> while ($count > $i);
> {
> echo "$i ";
> $i++;
> }
> Chris
>
--
-
Oops, well, that is just mental.
Must be getting tired or something, yes, that's it :)
Thanks.
- Original Message -
From: "Gyozo Papp" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>; "php" <[EMAIL PROTECTED]>
Sent: Tuesday,
> -Original Message-
> From: PHP List [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 15 August 2001 09:20
> To: php
> Subject: [PHP] Loop error?
>
>
> Hi,
> Can anyone tell me why this is a never ending loop?
>
> $i=0;
&
Hi,
clear that semicolon(;) after the while statement!
this makes the trick
- Original Message -
From: "PHP List" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: 2001. augusztus 15. 01:49
Subject: [PHP] Loop error?
Hi,
Can anyone tell me why th
Hi,
Can anyone tell me why this is a never ending loop?
$i=0;
$count = 1;
while ($count > $i);
{
echo "$i ";
$i++;
}
Chris
5 matches
Mail list logo