liam1412 Posted December 15, 2006 Share Posted December 15, 2006 How do I insert twext from a text area into MySQL so it keeps its formatting. IEIf I type ThisIsATestwhen I call it from the database again it is This Is A TestThanks Link to comment https://forums.phpfreaks.com/topic/30735-resolved-text-area-into-mysql/ Share on other sites More sharing options...
JasonLewis Posted December 15, 2006 Share Posted December 15, 2006 use the nl2br() function...http://www.php.net/nl2br:) Link to comment https://forums.phpfreaks.com/topic/30735-resolved-text-area-into-mysql/#findComment-141644 Share on other sites More sharing options...
trq Posted December 15, 2006 Share Posted December 15, 2006 Just insert it as pure data, then on the way out (ie: when you want to display it) use the [url=http://php.net/nl2br]nl2br[/url]() function to display it all nice and formatted. Link to comment https://forums.phpfreaks.com/topic/30735-resolved-text-area-into-mysql/#findComment-141647 Share on other sites More sharing options...
liam1412 Posted December 15, 2006 Author Share Posted December 15, 2006 Thanks All Link to comment https://forums.phpfreaks.com/topic/30735-resolved-text-area-into-mysql/#findComment-141650 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.