note 84683 added to function.nl2br

From: Date: Fri, 25 Jul 2008 10:30:24 +0000
Subject: note 84683 added to function.nl2br
Groups: php.notes 
Request: Send a blank email to php-notes+get-142692@lists.php.net to get a copy of this message
I pick up data from MySQL database and try to feed them into a Word document (Using replace). Problem is that all the linebreaks are removed when data is seen in Word. Example: Variable in MySQL: V1= Hello World Hello World Again Sent to Word it is shown as: Hello WorldHello Aworld Again I have tried using NL2BR($V1) but I get: Hello World</br>Hello World Again Instead of showing the variable in 2 lines. Is there a solution to this problem? If not with NL2BR() then with what or how? Thanks in advance. ---- Server IP: 216.235.15.211 Probable Submitter: 74.59.220.203 ---- Manual Page -- http://www.php.net/manual/en/function.nl2br.php Edit -- https://master.php.net/note/edit/84683 Del: integrated -- https://master.php.net/note/delete/84683/integrated Del: useless -- https://master.php.net/note/delete/84683/useless Del: bad code -- https://master.php.net/note/delete/84683/bad+code Del: spam -- https://master.php.net/note/delete/84683/spam Del: non-english -- https://master.php.net/note/delete/84683/non-english Del: in docs -- https://master.php.net/note/delete/84683/in+docs Del: other reasons-- https://master.php.net/note/delete/84683 Reject -- https://master.php.net/note/reject/84683 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#142692) next »