echoing single and multiple lines

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
User avatar
Luis Almeida
Forum Commoner
Posts: 33
Joined: Tue Apr 01, 2003 4:22 am

echoing single and multiple lines

Post by Luis Almeida »

Hi all,
this is probably a very basic question but i seem to be stuck on it.

I use one '<textarea>' element to insert text on a MySql Database.
The problem is that on fields with multiple lines when I echo it it comes in only one line.
I do I solve it
Thanks in advance
Luis ALmeida
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

:arrow: [php_man]nl2br()[/php_man]
Post Reply