Hi Guys, I was wondering if anyone could help me on this one ?
I’m in the process of building a CMS for a fairly large site i’m working on, and so far i’ve managed to build (or modify excising projects) an application that can add/edit/delete new entries via a php/mySQL backend - everything’s been working fine until I decided to add rich text capabilities and now it’s just being such a little ***** ! :huh: - the problem is that everytime I try and load in an entry with returns and spaces it adds commas to everything - and i’m utterly at an end to why it’s doing that ?
Here’s the xml that’s loaded into flash
<?xml version='1.0'?>
<home_news>
<news id='55' date='31.08.2007' title='ncontent_txt' author='ncontent_txt'>
<details catagory='artists' link=''><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Lucida Grande" SIZE="11" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Lucida Grande" SIZE="11" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0"><B>ncontent_txt</B></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Lucida Grande" SIZE="11" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Lucida Grande" SIZE="11" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">ncontent_txt</FONT></P></TEXTFORMAT></details>
</news>
<news id='54' date='31.08.2007' title='m,m,m' author='fvbn'>
<details catagory='download' link=''><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Lucida Grande" SIZE="11" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0"><B>,m,m,m,m,m,m,</B></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Lucida Grande" SIZE="11" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">m,m,m,m</FONT></P></TEXTFORMAT></details>
</news>
<news id='53' date='31.08.2007' title='hghg' author='ghhg'>
<details catagory='undefined' link=''><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Lucida Grande" SIZE="11" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Lucida Grande" SIZE="11" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">cfgvhbjn</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Lucida Grande" SIZE="11" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Lucida Grande" SIZE="11" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Lucida Grande" SIZE="11" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">lklklkl</FONT></P></TEXTFORMAT></details>
</news>
<news id='52' date='31.08.2007' title='cvbn' author='sdf'>
<details catagory='undefined' link=''>kjkjkjkjk\
mnmnmnm
</details>
</news>
<news id='51' date='31.08.2007' title='sdfgh' author='sdfh'>
<details catagory='music' link=''>hello.
hll.
</details>
</news>
<news id='50' date='31.08.2007' title='Hello' author='Liam'>
<details catagory='latest' link=''>Hi
liam
</details>
</news>
</home_news>
And here’s the output…
http://www.liamr.com/labs/LizardKingCMS/home_news/entries.swf
Any help would be amazing…
Thanks,
Liam R