csv file - field contents appear on multiple lines
Posted: Sun Jun 20, 2010 5:47 pm
I'm trying to build a csv file from a database (and other static information) using php -- one of the fields, however, contains html -- this was intended.
When I load this field into the csv file, it returns the results on multiple lines. ie:
Instead of this:
<li>Item one</li><li>Item two</li>
It does this:
<li>Item one</li>
<li>Item two</li>
And, the purpose of the csv file is to use as an imported file for a specific program, but it doesn't work if the field's contents are on multiple lines.
How can I get it to all be on one line? I've tried replacing "\n" with a space, but that doesn't work.
TIA.
When I load this field into the csv file, it returns the results on multiple lines. ie:
Instead of this:
<li>Item one</li><li>Item two</li>
It does this:
<li>Item one</li>
<li>Item two</li>
And, the purpose of the csv file is to use as an imported file for a specific program, but it doesn't work if the field's contents are on multiple lines.
How can I get it to all be on one line? I've tried replacing "\n" with a space, but that doesn't work.
TIA.