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 <br>"; > $i++; > } > Chris > -- -- 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] Loop error? PHP List
- Re: [PHP] Loop error? Gyozo Papp
- Re: [PHP] Loop error? PHP List
- RE: [PHP] Loop error? Andrew Braund
- Daniel Adams