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 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']); 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 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
Archived
This topic is now archived and is closed to further replies.