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!
you want to use nl2br() before echo'ing the text you grabbed from the database, or save it after nl2br()'ing it.
solution A:
->save textarea to database
->grab text from database
->apply nl2br() on it
->echo text
solution B:
->nl2br() text from textarea
->save text to database
->grab text from database
->echo text
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
hmm? i use a form in which i have textarea as input, when i print the text, stored in the database i use
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]