note 84683 rejected from function.nl2br by danbrown

From: Date: Fri, 25 Jul 2008 18:00:10 +0000
Subject: note 84683 rejected from function.nl2br by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-142730@lists.php.net to get a copy of this message
Note Submitter: walk_on_mars at yahoo dot com ---- 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.

« previous php.notes (#142730) next »