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
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
;', 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
-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
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,
5 matches
Mail list logo