dbarroco Posted October 1, 2007 Share Posted October 1, 2007 Hi, I insert data into mysql table trough a form (textarea). I give new line breaks to distinguish paragraphs, but when querying the table and printing out results, the text comes all together as in one single paragraph. Is there a way to read these line breaks? Tanx, Quote Link to comment Share on other sites More sharing options...
fenway Posted October 1, 2007 Share Posted October 1, 2007 That's because HTML doesn't know about \n\r... you need PHP's nl2br() function. Quote Link to comment Share on other sites More sharing options...
dbarroco Posted October 1, 2007 Author Share Posted October 1, 2007 simple and direct. Problem solved... Thanks a lot Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.