greenba Posted September 2, 2007 Share Posted September 2, 2007 Hi, I have a textarea field, and I enter text into it. Like this: Today is... a Nice day and I save all from that field to a db field. Now when I extract it from the db, it looks like this: Today is...a Nice day So there is no break after the "is..." any ideas? thanx, Adnan Quote Link to comment https://forums.phpfreaks.com/topic/67640-solved-saving-from-textarea-question/ Share on other sites More sharing options...
wildteen88 Posted September 2, 2007 Share Posted September 2, 2007 Use nl2br when you fetch the data from the database, eg: $row['my_row'] = n2br(row['my_row']); Quote Link to comment https://forums.phpfreaks.com/topic/67640-solved-saving-from-textarea-question/#findComment-339778 Share on other sites More sharing options...
greenba Posted September 2, 2007 Author Share Posted September 2, 2007 thank you wildteen88 Quote Link to comment https://forums.phpfreaks.com/topic/67640-solved-saving-from-textarea-question/#findComment-339781 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.