The data is inserted into db in this way: "Hello, This is a sample of first line. This is another paragraph, blah blah blah Bye" But the result is in one paragraph: "Hello, This is a sample of first line. This is another paragraph, blah blah blah Bye"
It sounds as if your database record includes a carriage return or new line character (\n), which is not recognized in html (except using the <pre> tag.
You need to replace the new line with an html <p> tag. You might want to store each paragraph in a different database record (make a table for the text. It will include a key that connects it to the main record, the text, and a sequence number that tells you the order in which the paragraphs should be displayed).
Linda H
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php