Re: <BR> vs \n, new lines in db

From: Date: Fri, 13 Sep 2002 14:38:49 +0000
Subject: Re: <BR> vs \n, new lines in db
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-116284@lists.php.net to get a copy of this message
> A costumer comes to me with his filemaker pro database. After a lot > of work I transformed it into a mysql database. When displaying > records in the browser using HTML (of course) the "new lines" and the > forming of alineas are now neglected within a field of a certain > record. This makes sense because there are no <BR> or <P></P> tags. You could use the nl2br function to transform the \n into <BR>. You could also create you're own function which transforms \n\n to <P>, because nl2br will make <BR><BR> from \n\n... HTH Erwin

« previous php.general (#116284) next »