SV: [PHP] converting str with \n to one line str??

2001-08-21 Thread Jens Schodt
:09 Til: Jens Cc: [EMAIL PROTECTED] Emne: Re: [PHP] converting str with \n to one line str?? use nl2br() http://www.php.net/nl2br or, alternatively, use a regex to strip out the newlines hope this helps. - Original Message - From: Jens [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent

SV: [PHP] converting str with \n to one line str??

2001-08-21 Thread Jens Schodt
] converting str with \n to one line str?? You could use str_replace(). -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Mon, 20 Aug 2001 20:15:54 +0200 Jens [EMAIL PROTECTED] wrote: When I use Javascript with PHP i run into one problem. When I get the data i

Re: [PHP] converting str with \n to one line str??

2001-08-21 Thread David Robley
Til: Jens Cc: [EMAIL PROTECTED] Emne: Re: [PHP] converting str with \n to one line str?? You could use str_replace(). -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Mon, 20 Aug 2001 20:15:54 +0200 Jens [EMAIL PROTECTED] wrote: When I use

SV: [PHP] converting str with \n to one line str??

2001-08-21 Thread Jens Schødt
-Oprindelig meddelelse- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sendt: 21. august 2001 09:31 Til: Jens Schødt; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Emne: RE: [PHP] converting str with \n to one line str?? just a thought - \r\n? try stripping out \r's as well. windows does

SV: [PHP] converting str with \n to one line str??

2001-08-21 Thread Jens Schødt
for the help :-) jens -Oprindelig meddelelse- Fra: David Robley [mailto:[EMAIL PROTECTED]] Sendt: 21. august 2001 09:43 Til: Jens Schødt Cc: '[EMAIL PROTECTED]' Emne: Re: [PHP] converting str with \n to one line str?? On Tue, 21 Aug 2001 16:49, Jens Schodt wrote: $temp = str_replace(\n

RE: [PHP] converting str with \n to one line str??

2001-08-21 Thread Dave
: [EMAIL PROTECTED] Emne: Re: [PHP] converting str with \n to one line str?? You could use str_replace(). -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Mon, 20 Aug 2001 20:15:54 +0200 Jens [EMAIL PROTECTED] wrote: When I use Javascript with PHP i run into one

[PHP] converting str with \n to one line str??

2001-08-20 Thread Jens
When I use Javascript with PHP i run into one problem. When I get the data i need from the database it often has a lot of br and \n (new lines) in it. The br are no problem when converting a string to a Javascript string, but the \n are. The string has to be all in one line. example: ? $temp =

Re: [PHP] converting str with \n to one line str??

2001-08-20 Thread Artwithin
use nl2br() http://www.php.net/nl2br or, alternatively, use a regex to strip out the newlines hope this helps. - Original Message - From: Jens [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 20, 2001 11:15 Subject: [PHP] converting str with \n to one line str?? When I

Re: [PHP] converting str with \n to one line str??

2001-08-20 Thread Tyler Longren
You could use str_replace(). -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Mon, 20 Aug 2001 20:15:54 +0200 Jens [EMAIL PROTECTED] wrote: When I use Javascript with PHP i run into one problem. When I get the data i need from the database it often has