textarea problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bimbo
Forum Newbie
Posts: 3
Joined: Tue Apr 25, 2006 3:36 am

textarea problem

Post 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
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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...
Post Reply