How do I insert stuff into the sql database with linebreaks from a textarea?
Thanks in advanced,
-Dren
Linebreaks
Moderators: Moderator, Global Moderator
Linebreaks
[align=center]

“If you stop learning, you stop living.” ~Tami Quiring
“It's the rare man who understands the value of a single perfect rose.”
[/align]

“If you stop learning, you stop living.” ~Tami Quiring
“It's the rare man who understands the value of a single perfect rose.”
[/align]
Linebreaks
Insert the data into the database like normal and then use the nl2br(); function to echo it back.
[url=\"http://uk2.php.net/manual/en/function.nl2br.php\"]http://uk2.php.net/manual/en/function.nl2br.php[/url]
[url=\"http://uk2.php.net/manual/en/function.nl2br.php\"]http://uk2.php.net/manual/en/function.nl2br.php[/url]
Love is all a matter of timing.
It's no good meeting the right person too soon or too late.
If I'd live in another time or place...
...my story might have had a very different ending.
It's no good meeting the right person too soon or too late.
If I'd live in another time or place...
...my story might have had a very different ending.
Linebreaks
Thank you! <img src=\'http://www.killanet.net/forum3/public/s ... /smile.gif\' class=\'bbc_emoticon\' alt=\':)\' />
[align=center]

“If you stop learning, you stop living.” ~Tami Quiring
“It's the rare man who understands the value of a single perfect rose.”
[/align]

“If you stop learning, you stop living.” ~Tami Quiring
“It's the rare man who understands the value of a single perfect rose.”
[/align]

