how do i export line breaks in SQL export

If you need help on how to use the program
Post Reply
kazgor
Posts: 175
Joined: 2006-05-08 13:13:52
Contact:

how do i export line breaks in SQL export

Post by kazgor »

just notices when using export by SQL that its using || for CR+LF
how do i get it to proper do linebreaks so that when its imported into sql table it will be correctly formatted.

ta
antp
Site Admin
Posts: 9668
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

How should linebreaks appear? With \n? You could do a search/replace with a text editor.
kazgor
Posts: 175
Joined: 2006-05-08 13:13:52
Contact:

Post by kazgor »

sorted this one out now.. it was the Description and Comment fields i was talking about that Export with || for linebreaks.

Ideally i would have expected the SQL CSV file to contan \n as in PHP you can do.

$description=nl2br($description);

but instead i did a search/replace in php with

$html_tag = '<br />';
$description = str_replace('|', $html_tag, $description );

so all good now thanks. :)
Last edited by kazgor on 2006-06-04 16:44:02, edited 1 time in total.
antp
Site Admin
Posts: 9668
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

You are right, it would be more logical for SQL export to use \n...
Well, there are lots of things to improve :D
kazgor
Posts: 175
Joined: 2006-05-08 13:13:52
Contact:

Post by kazgor »

hehe... well its a very good program

Now i know the work around its easier enough to do :)
Post Reply