RE: [PHP-DB] Remove newlines from field

2006-03-21 Thread Giff Hammar
-Original Message- From: Miles Thompson [mailto:[EMAIL PROTECTED] Sent: Monday, March 20, 2006 6:17 PM To: php-db@lists.php.net Subject: RE: [PHP-DB] Remove newlines from field >At 04:00 PM 3/20/2006, you wrote: > > >I am using a PHP script to pull information from a Fox

RE: [PHP-DB] Remove newlines from field

2006-03-21 Thread Giff Hammar
-Original Message- From: Ludvig Ericson [mailto:[EMAIL PROTECTED] Sent: Monday, March 20, 2006 5:54 PM To: Giff Hammar Cc: php-db@lists.php.net Subject: Re: [PHP-DB] Remove newlines from field Mind you Pearl programmers, what would that do? [snip] It changes the end of line

RE: [PHP-DB] Remove newlines from field

2006-03-20 Thread Miles Thompson
At 07:17 PM 3/20/2006, Miles Thompson wrote: Forgot to add that the writers work in WP 5.2 for Windows, because it has an excellent indexing function which enables them to locate back stories v. quickly. That text is cut and pasted into an HTML textarea, which is saved to a MySQL databa

RE: [PHP-DB] Remove newlines from field

2006-03-20 Thread Miles Thompson
At 04:00 PM 3/20/2006, you wrote: I am using a PHP script to pull information from a FoxPro database via ODBC. One of the fields is a memo field (large text) that contains newline characters. Displaying this info to the web page is fine as the newlines are ignored. The challenge is when I com

Re: [PHP-DB] Remove newlines from field

2006-03-20 Thread Ludvig Ericson
I think I need something like the 'local $/ = "\r\n"' > construct in perl... > > Giff > > _ > > From: Jeremy Peterson [mailto:[EMAIL PROTECTED] > Sent: Monday, March 20, 2006 5:14 PM > To: Giff Hammar > Subject: Re: [PHP-DB] Remove newlines from fie

RE: [PHP-DB] Remove newlines from field

2006-03-20 Thread Giff Hammar
emy Peterson [mailto:[EMAIL PROTECTED] Sent: Monday, March 20, 2006 5:14 PM To: Giff Hammar Subject: Re: [PHP-DB] Remove newlines from field Try nl2br. http://php.net/nl2br At 04:00 PM 3/20/2006, you wrote: I am using a PHP script to pull information from a FoxPro database via ODBC. One of

RE: [PHP-DB] Remove newlines from field

2006-03-20 Thread Bastien Koert
see the nl2br function in the manual (www.php.net/nl2br) bastien From: "Giff Hammar" <[EMAIL PROTECTED]> To: Subject: [PHP-DB] Remove newlines from field Date: Mon, 20 Mar 2006 17:00:49 -0500 I am using a PHP script to pull information from a FoxPro database via ODBC. One

[PHP-DB] Remove newlines from field

2006-03-20 Thread Giff Hammar
I am using a PHP script to pull information from a FoxPro database via ODBC. One of the fields is a memo field (large text) that contains newline characters. Displaying this info to the web page is fine as the newlines are ignored. The challenge is when I combine user entered text with the existing