Try this function nl2br()
Mat ----- Original Message ----- From: "Rance Hall" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 01, 2002 7:51 AM Subject: Using MySQL text column with PHP4 > I need some help formatting a MySQL longtext column for presentation via PHP > > When I pull the data with PHP the line feeds are not respected unless I use the <pre></pre> HTML tags around my data field. > > This does not have the desired effect. > > how can I pull the data into the php web page and maintain line feeds/carriage returns while still respecting other text layout commands? > > Rance Hall > 308.238.2455 > Internal Office Extensions: 2455 or 6655 > PC Programmer, The Buckle, Inc. > [EMAIL PROTECTED] > > --------------------------------------------------------------------- > Before posting, please check: > http://www.mysql.com/manual.php (the manual) > http://lists.mysql.com/ (the list archive) > > To request this thread, e-mail <[EMAIL PROTECTED]> > To unsubscribe, e-mail <[EMAIL PROTECTED]> > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php > --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php