Re: Line breaks from a database!

From: Date: Tue, 02 Jul 2002 15:19:38 +0000
Subject: Re: Line breaks from a database!
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-20273@lists.php.net to get a copy of this message
Try nl2br(). ie. $var=nl2br($var); This replaces \n with <br> "Ryan Jameson (USA)" <RJameson@usa.ibs.org> said: > Hi guys, maybe I'm missing something silly but when I retrieve a string from my SQL server with '\n' in it, they are displayed literally instead of as line breaks. StripSlashes only turns them into 'n'. > > Any ideas? > > <>< Ryan > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > --

« previous php.db (#20273) next »