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 Quote Link to comment 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:) Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
liam1412 Posted December 15, 2006 Author Share Posted December 15, 2006 Thanks All 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.