The nl2br() function is to convert \r\n into HTML <br> tags right?
That is not what I am looking for if it is. I need to turn all that whitespace and linebreaks produced from a user entering text into a textarea field into \r\n
This dump script produces fields in the INSERT statement it creates like so:
','Hello this is and example note
and here is a line break
and another one
', ' another data field','
I need it to look like this:
','Hello this is and example note\r\nand here is a line break\r\nand another one\r\n', ' another data field','
So the statment comes out on one line
Does anyone know how to do this?