You could look into the nl2br() function, which converts \n -style newlines
(entered in  <TEXTAREA>s) into HTML <br>s.

http://www.php.net/nl2br

HTH
Jon


-----Original Message-----
From: Tim Thorburn [mailto:[EMAIL PROTECTED]]
Sent: 26 November 2001 07:32
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Pulling information out of a MySQL database


I did have one last aesthetic question ... I have one field set as TEXT 
which holds descriptions of the events.  When the information was entered 
into this field, in many cases, spaces between lines were entered ... 
however, when I pull the info from the database onto the webpage ... all my 
line formatting is erased and its just one continuous line of text.  Is 
there a way to maintain my line formatting with spaces?


**********************************************************************
'The information included in this Email is of a confidential nature and is 
intended only for the addressee. If you are not the intended addressee, 
any disclosure, copying or distribution by you is prohibited and may be 
unlawful. Disclosure to any party other than the addressee, whether 
inadvertent or otherwise is not intended to waive privilege or confidentiality'

**********************************************************************

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to