Re: formatting lf's and the blob

From: Date: Thu, 19 Oct 2000 20:27:32 +0000
Subject: Re: formatting lf's and the blob
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-21268@lists.php.net to get a copy of this message
Floyd Baker writes: > > We've tried that but perhaps not in the right way...? > > Its in the calling page as so: <? include(nl2br("included.php3")); ?> > This is how I've done it in the past, when calling .txt files... But this is the > first time I've tried to call a php script to pull and print a database text > field. > > Floyd What that does is: converts any newlines in the string "included.php3" into <BR>s, then includes the file with the resulting name. The 'nl2br()' should happen when you output the strings--or maybe right when you get them from the db, depending on what you need to do with them. -- +----------------------------------------------------------------+ |Torben Wilson <torben@php.net> Netmill iTech| |http://www.coastnet.com/~torben http://www.netmill.fi| |Ph: 1 250 383-9735 torben@netmill.fi| +----------------------------------------------------------------+

« previous php.general (#21268) next »