New line problem - but for Excel

From: Manisha Sathe (manisha_at_starhub.net.sg)
Date: 11/29/03


To: php-general@lists.php.net
Date: Sat, 29 Nov 2003 12:29:04 +0800

Just now discussion was going on for new line - the same worked for me (I
used string replace)

Live Server : Linux / MySQL / PHP

There is a field called 'Address' (textarea) - mysql stores \n for carriage
return. Now from current disussion thread i know i can remove this with
something like <br> (may be something else also)

I want to export this to csv file. PHPMyAdmin 2.0 version has one option to
convert to csv with delimiter e.g ';' .

On my computer (Windows)

If I do not use string replace command then '\n' goes as a new row. If i
replace it with <br> then it appears in the Excel that is also I do not
want.

Is there any better way so that '\n' does not come out as new row - but do
not want to make use of <br> as this will appear, please suggest,

regards
manisha

When i open it in Excel now that \n becoms a new row which i do not want



Relevant Pages

  • CSV numeric strings
    ... I'm having a little "fun" creating a CSV file from an ASP page for use with ... Excel tries to be smart about things. ... I know the trick when manually entering a value in a cell that is numeric ... but you want treated as a string. ...
    (microsoft.public.excel)
  • Re: Export to Excel ???
    ... Don't know if the following helps but as you can open a .csv file (plain ... delimited text) in Excel. ... // save the string grid data ... // use a comma as the delimiter ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: text string: "91E10" in csv file auto converts to: "9.10E+11"
    ... Don't open the CSV file that way (nor by using File / Open from within ... In the text import wizard, specify the relevant column as Text if you don't ... want Excel to reformat them. ... the string is delimited as,"91E10", between other data fields. ...
    (microsoft.public.excel.misc)
  • Re: importing csv file
    ... i am generating a csv file that i'm importing to excel. ... that exact same string in excel, not scientific notation which seems to ... this, '2777380003, but the single quote is displayed in excel until i ...
    (microsoft.public.excel.misc)
  • importing csv file
    ... i am generating a csv file that i'm importing to excel. ... that exact same string in excel, not scientific notation which seems to ... this, '2777380003, but the single quote is displayed in excel until i ...
    (microsoft.public.excel.misc)