try nl2br() it converts \n into <br>
Jim ----- Original Message ----- From: "eoghan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 26, 2002 2:23 AM Subject: [PHP] format text > hello > i am looking for a way of formatting my text > when i select it from mysql, looking for a function > like cold fusion paragraphformat() that will preserve > line breaks etc when i select my data from the database. > > thanks > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php