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, Link to comment https://forums.phpfreaks.com/topic/71347-solved-how-to-make-paragraphs/ 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. Link to comment https://forums.phpfreaks.com/topic/71347-solved-how-to-make-paragraphs/#findComment-358991 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 Link to comment https://forums.phpfreaks.com/topic/71347-solved-how-to-make-paragraphs/#findComment-359092 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.