RE: [PHP-DB] Handling Linefeeds in MySQL/PHP

2001-07-04 Thread Steve Brett
e- > From: Micah Stevens [mailto:[EMAIL PROTECTED]] > Sent: 03 July 2001 22:06 > To: [EMAIL PROTECTED] > Subject: Re: [PHP-DB] Handling Linefeeds in MySQL/PHP > > > The information returned from a text box includes line feeds > in the form of > "\n" whic

Re: [PHP-DB] Handling Linefeeds in MySQL/PHP

2001-07-03 Thread Micah Stevens
The information returned from a text box includes line feeds in the form of "\n" which is not recognized by browsers as a line feed. To make it display properly, you need to convert all the "\n"s to ""s.. Here's a snippet of code that I use: // Assume that the text field is named 'message' and

Re: [PHP-DB] Handling Linefeeds in MySQL/PHP

2001-07-03 Thread John S. Huggins
Try nl2br() http://www.php.net/manual/en/function.nl2br.php On Tue, 3 Jul 2001, Bessette, Casey wrote: >-I am creating a content management page that uses a textarea box to enter a >-chunk of text which then is sent into the database into a text-type field. >- >-I am finding that when the d