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
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, w
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:
Is this your exact code? I ask, because the following should generate a parse error:
echo "";
You have 3 double-quotes (").
- Original Message -
From: "James Brennan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 07, 2003 7
> 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
>
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 ", $key, $key);
echo "";
while($row = mysql_fetch_row($show_names)) {
printf("%s", $row[0], $row[1]);
6 matches
Mail list logo