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 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. Link to comment https://forums.phpfreaks.com/topic/13808-carriage-return/#findComment-53673 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.