Re: for loop...

From: Date: Fri, 08 Mar 2002 16:13:53 +0000
Subject: Re: for loop...
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-12520@lists.php.net to get a copy of this message
for(...) { do { } while( ... ) } so that way, your code inside the inner loop will execute at least once everytime .... nicole amashta www.aeontrek.com "Sandeep Murphy" <sandeep.murphy@oni.pt> wrote in message news:E19D413241925C44AEC5FB528960B8CB0C2976@excalr01.oni.pt... > hi, > > may be this is a dumb question to ask but here goes anyway.. > > I have 2 for loops such as: > > for(int i = 0; i < View.length; i++) > for(int l = 0; l <Approve.length ; l++) > > SQL = "insert into DOC_PRIVILEGES (COD)...... > > } > } > > where view.length = 5 and approve.length is 0 (in this case), how do i > execute my query irrespective of whether the inner forloop is empty or > not??? > > I cannot use a l"<=" as it wud result in an ArrayOutOfBoundsException... > > any suggestions pl?? > > TIA, > sands

« previous php.windows (#12520) next »