tags:

views:

30

answers:

4
A: 

If you are displaying your stored text as HTML then \n are getting ignored. PHP has nl2br() function that would convert linebreaks to <br>, just run your text through it before displaying.

serg
+1  A: 

You should convert the textarea content with nl2br then store it.

It will convert your newlines to <br />

Soufiane Hassou
Yeap....thank u all the guys....4 help...now its showing exactly....
Nitz
+1  A: 

My guess is you are outputting HTML which doesn't render line breaks. Try using nl2br().

Kevin
+1  A: 

I am sure the \n character is stored in the database. However it wont be rendered if you display the output on a web page. Just replace \n with <br >

Midhat