[PHP] help - WHILE in FOREACH

2003-01-07 Thread James Brennan
The while statement is only executing correctly for the first run through the foreach loop. Why? Thanks, loop foreach($desc as $key=$value) { printf(Show %s Description select name='show%sDesc', $key, $key); echo option value = ''/option; while($row = mysql_fetch_row($show_names))

Re: [PHP] help - WHILE in FOREACH

2003-01-07 Thread Matt
From: James Brennan [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 8:29 PM Subject: [PHP] help - WHILE in FOREACH The while statement is only executing correctly for the first run through the foreach loop. Why? Thanks, loop foreach($desc as $key=$value) { printf(Show %s Description

Re: [PHP] help - WHILE in FOREACH

2003-01-07 Thread Rick Emery
Is this your exact code? I ask, because the following should generate a parse error: echo option value = ''/option; You have 3 double-quotes (). - Original Message - From: James Brennan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 7:29 PM Subject: [PHP] help

Re: [PHP] help - WHILE in FOREACH

2003-01-07 Thread James Brennan
The second set of quotes is actualy two single quotes with nothing in-between. .loop From: Rick Emery [EMAIL PROTECTED] Reply-To: Rick Emery [EMAIL PROTECTED] To: James Brennan [EMAIL PROTECTED],[EMAIL PROTECTED] Subject: Re: [PHP] help - WHILE in FOREACH Date: Tue, 7 Jan 2003 20:18:08 -0600

Re: [PHP] help - WHILE in FOREACH

2003-01-07 Thread Chris Wesley
On Tue, 7 Jan 2003, James Brennan wrote: The while statement is only executing correctly for the first run through the foreach loop. Why? It's /real/ hard to tell when you don't give any context or otherwise explain what it is you want to achieve. Since the code in fact executes correctly, we

Re: [PHP] help - WHILE in FOREACH

2003-01-07 Thread James Brennan
My appologies for the lack of explicit information. Thank you for taking the time to write a reply. That is exactly what I needed to know. Thanks again, James From: Chris Wesley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] help - WHILE in FOREACH Date: Tue, 7 Jan 2003 18:49:53