smithster
02-24-2011, 01:01 PM
I have tried preg_replace and str_replace but both show \n and \r within the textbox. I want to pull some data out of the database and display it in the textarea to allow for easy update.
The data within one mysql field is seperated by a comma like so...
data1,data2,data3....
I want to replace the comma with a line break like so....
data1
data2
data3....
I have searched and searched but my search ends up with answers to the opposite! Removing line breaks for form submission. I can do that part!
Hope someone can help!
Regards
Smithster
The data within one mysql field is seperated by a comma like so...
data1,data2,data3....
I want to replace the comma with a line break like so....
data1
data2
data3....
I have searched and searched but my search ends up with answers to the opposite! Removing line breaks for form submission. I can do that part!
Hope someone can help!
Regards
Smithster