Page 1 of 1

textarea problem

Posted: Tue Apr 25, 2006 4:35 am
by bimbo
i m inserting data in a mediumtext field in phpmyadmin when i am fetching it within a table's cell it is not shown the way i had inserted in the textarea means it is not in the same format.
i am showing an example:
my original text:
A quick brown fox jumps over
the lazy dog

A quick brown fox jumps over
the lazy dog

A quick brown fox jumps over
the lazy dog


text shown in the table'c cell

A quick brown fox jumps over the lazy dog A quick brown fox jumps over
the lazy dog A quick brown fox jumps over
the lazy dog





does anybody can help me to solve it

Posted: Tue Apr 25, 2006 6:08 am
by timvw
It's is showing the same... But html is not rendered the same as text in most (any) webbrowser...

Anyway, http://www.php.net/nl2br is a good start...