Re: [PHP] What did I do wrong to cause a parse error?

2003-07-11 Thread Lars Torben Wilson
Hi there, On Thu, 2003-07-10 at 21:53, Phil Powell wrote: foreach ($profileArray[$i][attributes] as $key = $val) { ^^ You should quote the word 'attributes': http://www.php.net/manual/en/language.types.array.php#language.types.array.donts Sorry...that link

Re: [PHP] What did I do wrong to cause a parse error?

2003-07-11 Thread David Otton
On Fri, 11 Jul 2003 00:53:32 -0400, you wrote: foreach ($profileArray[$i][attributes] as $key = $val) { $singleProfileHTML .= $key . =\ . str_replace(', '#039;', str_replace('', 'quot;', $val)) . \\n; } The parsing error occurs in the $singleProfileHTML.. line. I'm completely don't

Re: [PHP] What did I do wrong to cause a parse error?

2003-07-11 Thread Phil Powell
;', stripslashes($val))) . \\n; } $singleProfileHTML .= --\n; Beats the heck out of me! Phil - Original Message - From: David Otton [EMAIL PROTECTED] To: Phil Powell [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, July 11, 2003 2:48 AM Subject: Re: [PHP] What did I do wrong

RE: [PHP] What did I do wrong to cause a parse error?

2003-07-11 Thread Ford, Mike [LSS]
-Original Message- From: Phil Powell [mailto:[EMAIL PROTECTED] Sent: 11 July 2003 05:54 foreach ($profileArray[$i][attributes] as $key = $val) { $singleProfileHTML .= $key . =\ . str_replace(', '#039;', str_replace('', 'quot;', $val)) . \\n; } The parsing error occurs

[PHP] What did I do wrong to cause a parse error?

2003-07-10 Thread Phil Powell
foreach ($profileArray[$i][attributes] as $key = $val) { $singleProfileHTML .= $key . =\ . str_replace(', '#039;', str_replace('', 'quot;', $val)) . \\n; } The parsing error occurs in the $singleProfileHTML.. line. I'm completely don't get it; I see absolutely nothing wrong with this,