steven121 Posted November 22, 2009 Share Posted November 22, 2009 This might seem like a really silly question but how can i keep the format of posted text into a mysql database. e.g. i have a multiline textarea as part of a form. When i post this form to my php script I am saving all the data into the mysql database. However if the user makes carrage returns or copies text into the textarea that has paragraphs, I want to keep these paragraph format and saved into the database so i can echo out to a page and retain the format. Link to comment https://forums.phpfreaks.com/topic/182542-saving-paragraphs-in-multiline-to-mysql/ Share on other sites More sharing options...
mrMarcus Posted November 22, 2009 Share Posted November 22, 2009 look into: nl2br() Link to comment https://forums.phpfreaks.com/topic/182542-saving-paragraphs-in-multiline-to-mysql/#findComment-963478 Share on other sites More sharing options...
steven121 Posted November 22, 2009 Author Share Posted November 22, 2009 thanks works a treat Link to comment https://forums.phpfreaks.com/topic/182542-saving-paragraphs-in-multiline-to-mysql/#findComment-963481 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.