Page 1 of 1

Linebreaks

Posted: Wed Sep 28, 2005 6:56 pm
by Josh
How do I insert stuff into the sql database with linebreaks from a textarea?

Thanks in advanced,
-Dren

Linebreaks

Posted: Wed Sep 28, 2005 9:33 pm
by Jim
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]

Linebreaks

Posted: Wed Sep 28, 2005 9:43 pm
by Josh
Thank you! /smile.gif\' class=\'bbc_emoticon\' alt=\':)\' />