Use n12br() with the output from your DB to your webpage:

$content = n12br($content);
echo $content;


HTH :-)

Russ

On Thu, 16 Aug 2001 09:02:44 -0500 John Roach <[EMAIL PROTECTED]> wrote:

> 
> 
> -- Hello,
> 
> I have a mysql db with a largetext field defined. When users enter 
> data, it drops all of the blank lines, so paragraghs run together. Is 
> there a way to display the output with out it being formated in html? 
> It works fine if you insert <br> for each blank line. It of course 
> drops any indents or centering. I would like to maintain any user 
> formating without them entering html tags.
> 
> Thanks,
> 
> John
> 
> 
> 
> 
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

#-------------------------------------------------------#
                                
  "Believe nothing - consider everything"       
  
  Russ Michell
  Anglia Polytechnic University Webteam
  
  e: [EMAIL PROTECTED]
  w: www.apu.ac.uk/webteam
  t: +44 (0)1223 363271 x 2331

  www.theruss.com
                        
#-------------------------------------------------------#


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to