krone Posted July 6, 2006 Share Posted July 6, 2006 Hi.ive just started creating a forum.. for inserting post/thread. it does not read carriage returns. is there a function that i can use that will read carriage returns and put it in mySql accordingly? the forum post/thread elements are "TEXT" data type in mySql.eg.if i postonetwothreeit comes out in the post as "one two three" ;D cheeers Quote Link to comment https://forums.phpfreaks.com/topic/13808-carriage-return/ Share on other sites More sharing options...
trq Posted July 6, 2006 Share Posted July 6, 2006 It is being inserted into the database fine. However, you'll need to use [url=http://php.net/nl2br]nl2br[/url] when displaying the data. Quote Link to comment https://forums.phpfreaks.com/topic/13808-carriage-return/#findComment-53673 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.