FilipKrstic Posted January 18, 2009 Share Posted January 18, 2009 Hi.. This is what's bodering me.. I have some data in mysql database, and when i'm reading from database and, while printing, use nl2br function it works fine.. And I created inline ajax editor to edit that data. When i click "Edit" and 'throw' data through xmlhttp req, my php script get data, update database, and echo some html so the js script could update html.. And there is my problem.. My php script echo nl2br($text); but it seems like nl2br doesnt have any effect to $text. It outputs with '\n' inside text.. How to fix this? Link to comment https://forums.phpfreaks.com/topic/141272-solved-urgent-nl2br-doesnt-work/ Share on other sites More sharing options...
FilipKrstic Posted January 18, 2009 Author Share Posted January 18, 2009 Never mind, i fixed it up! Link to comment https://forums.phpfreaks.com/topic/141272-solved-urgent-nl2br-doesnt-work/#findComment-739434 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.