New line textarea php sql?

ross

New member
Hello

I have a dynamic table set up in dreamweaver cs4 that retrieves text from a database. If someone submits a record and the hit enter to put a new line in it doesn't work. The retrieved record ignores where the line should be and shows all the text with no line break.

Is there any code to create the line break?? If so can someone please help, am new to php, database etc so please give me the dummy's guide.

Regards
 
Newlines are ignored in HTML, and have to be converted to a line break tag: < b r / >

PHP has a function to do this for you: nl2br. You could also do it manually using str_replace.
 
Back
Top