3raser Posted July 26, 2010 Share Posted July 26, 2010 How do I make it so when someone submits data through $_POST, and then its stored in the database........that everytime when they were making their post, and they hit enter - That it would make a new line. Because when I store it in the database, it doesn't make new lines. So how do I do it? Quote Link to comment Share on other sites More sharing options...
cs.punk Posted July 26, 2010 Share Posted July 26, 2010 nl2br(); Quote Link to comment Share on other sites More sharing options...
3raser Posted July 26, 2010 Author Share Posted July 26, 2010 nl2br(); No. I'm storing data in the database and then displaying it. Quote Link to comment Share on other sites More sharing options...
trq Posted July 26, 2010 Share Posted July 26, 2010 You use nl2br when you retrieve and display the data back from the database. Quote Link to comment Share on other sites More sharing options...
3raser Posted July 26, 2010 Author Share Posted July 26, 2010 You use nl2br when you retrieve and display the data back from the database. Oh. Thanks. Thought last time on my topic like this before someone said that is can't display. Thanks to the both of you guys. 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.