Re: [PHP] while() query

2002-04-11 Thread Jason Wong
On Friday 12 April 2002 06:15, Caspar Kennerdale wrote: > This may be a baisc programming query, to which I dont have the ansa, > > but can you do a while () loop, but set a condition so that it misses one > ie > > $counter = -1; > while(++$counter <50){ > > do a task on all between 1 and 50 excep

RE: [PHP] while() query

2002-04-11 Thread Caspar Kennerdale
Thanks to all -Original Message- From: Christoph Starkmann [mailto:[EMAIL PROTECTED]] Sent: 11 April 2002 07:22 To: 'Caspar Kennerdale'; '[EMAIL PROTECTED]' Subject: RE: [PHP] while() query Hi Caspar! $counter = -1; while(++$counter <50) {

RE: [PHP] while() query

2002-04-11 Thread Christoph Starkmann
Hi Caspar! $counter = -1; while(++$counter <50) { if ($counter != 39) { do a task on all between 1 and 50 except on 39 } } This should do... Cheers, Kiko -- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.gruppe-

[PHP] while() query

2002-04-11 Thread Caspar Kennerdale
This may be a baisc programming query, to which I dont have the ansa, but can you do a while () loop, but set a condition so that it misses one ie $counter = -1; while(++$counter <50){ do a task on all between 1 and 50 except on 39 } Thanks -- PHP General Mailing List (http://www.php.net/