QUOTE(joeyadms @ 27 Jun, 2008 - 04:09 AM)

Try nl2br() , if that does not do it, then try storing the data in the database with \n for the newline and use nl2br() .
Or you could use regex to match it, assuming every row is formatted alike.
Regex, and any other kind of format recognization is really unpredictable, especially if the data you are storing is variable.
What I would do, is to modify my tables to include the newline delimeter, and setup my application to store newline delimters when adding new records. It is a little bit of work in front, but a quick run through nl2br and your output is formatted exactly how you want and is consistent.
nl2br() or <br> inserting data solves the problem but data contain paragraph,spaces then it not working