Reply to Re: Whitespace in textarea needs to remain when submitted to a database
Posted by guttyguppy on 01/20/06 00:13
$result = mysql(DB_NAME,"select content from thetable where
id='$id'",$link);
$content = stripslashes($row['content']);
echo $content;
Thatg's basically the code on the page where the content is pulled from
the database. You're right, in the database the liine breaks are there.
Where should I add the nl2br function? Thanks so much.