Re: Loop error?

From: Date: Wed, 15 Aug 2001 02:43:28 +0000
Subject: Re: Loop error?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-62735@lists.php.net to get a copy of this message
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 > --

« previous php.general (#62735) next »