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? Link to comment https://forums.phpfreaks.com/topic/208893-how/ Share on other sites More sharing options...
cs.punk Posted July 26, 2010 Share Posted July 26, 2010 nl2br(); Link to comment https://forums.phpfreaks.com/topic/208893-how/#findComment-1091160 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. Link to comment https://forums.phpfreaks.com/topic/208893-how/#findComment-1091162 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. Link to comment https://forums.phpfreaks.com/topic/208893-how/#findComment-1091164 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. Link to comment https://forums.phpfreaks.com/topic/208893-how/#findComment-1091165 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.