Landy,

> echo "<TD colspan=\"3\" width=\"532\"><P>$article</P></TD>";

> The text displays, but the paragraph breaks are gone and all the text 
> is just run together into one long paragraph.

In PHP, you can use nl2br(), like:

echo "<TD colspan=\"3\" width=\"532\"><P>".nl2br($article)."</P></TD>";

This will replace "\n" (the new-line character that makes that line
break in TEXTAREA) by "<br/>". If you're a maniac (like I am) you can
even do:

echo "<TD colspan=\"3\" width=\"532\"><P>"
     .str_replace(nl2br($article),"<br/>","</p><p
     style=\text-indent:10px\">")
     ."</P></TD>";

Or something similar to that.

Regards,
--
  Stefan Hinz <[EMAIL PROTECTED]>
  iConnect GmbH <http://iConnect.de>
  Heesestr. 6, 12169 Berlin (Germany)
  Telefon: +49 30 7970948-0  Fax: +49 30 7970948-3

[filter fodder: sql, mysql, query]


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to