Page 1 of 1
how do i export line breaks in SQL export
Posted: 2006-06-03 23:20:37
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
Posted: 2006-06-04 09:23:21
by antp
How should linebreaks appear? With \n? You could do a search/replace with a text editor.
Posted: 2006-06-04 15:32:26
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.

Posted: 2006-06-04 16:05:53
by antp
You are right, it would be more logical for SQL export to use \n...
Well, there are lots of things to improve

Posted: 2006-06-04 16:43:03
by kazgor
hehe... well its a very good program
Now i know the work around its easier enough to do
