Re: Separating paragraphs in mySQL?

From: Date: Mon, 09 Apr 2001 15:24:08 +0000
Subject: Re: Separating paragraphs in mySQL?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-8388@lists.php.net to get a copy of this message
nl2br() is useful in such cases. http://www.php.net/manual/en/html/function.nl2br.html Doug At 11:32 AM 4/9/01 +0800, sam wrote: >Hello, > >I have this field filled up from within a text area. Something the same as >that on message boards but something that has more characters in it. I have >it set to get up to 1500 characters. > >My main problem is that although I tried inserting separate paragraphs (by >pressing the return/enter key when every paragraph gets finished), when I >tried viewing them on PHP pages, they still show as one whole paragraph >without any line breaks (\n). > >My question, how can I save the entries on the database and still show the >"\n" or next lines, thus being able to separate different paragraphs from >each other. > >thanks in advance. > >the.sam

« previous php.db (#8388) next »