RE: [PHP] Formatted text from mySQL DB

From: Date: Tue, 05 Aug 2003 14:47:40 +0000
Subject: RE: [PHP] Formatted text from mySQL DB
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-158296@lists.php.net to get a copy of this message
Astrum Et Securis! Thanks all.. for the very needed input. www.php.net/nl2br has been very helpful. I'm still testing out the different ways. There appears to be a differentiation between people's usage and formulas for the same. While some find nl2br() very helpful, others find it a waste of time. And some have their own ereg_replace() formulas assisting them. A little bit of testing will have me on my way. Thanks again.. Dominor! PHPSpooky > HTML does not render new lines. Have a look at the source code of your > page > and you'll see that the text is indeed on separate lines. HTML only > understands something like <br />, though, to go to a new line. So, you > need > to replace the new line characters with HTML breaks in order to maintain > appearance. > >

« previous php.general (#158296) next »