> -----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("'", > ''', str_replace('"', '"', $val)) . "\"\n"; > } > > The parsing error occurs in the "$singleProfileHTML.." line. > I'm completely don't get it; I see absolutely nothing wrong > with this, what did I miss?
Well, I can see nothing wrong with that line, so I can't help there. I do, however, wonder why you aren't using htmlentities() instead of those two ugle str_replace()s. And I hope you have a constant defined called attributes, otherwise that array index must be either quoted (e.g. 'attributes'), or $attributes. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php