I'm abit stumped on this I have a textarea on a form and then I put it into a blob in a database. But the problem is the carrage returns dont appear when I pull the info out onto the site. Please help! thanks chuckury
i think this has to do with turning on 'magic_quotes' in php.ini but don't hold me to that
i think database is fine maybe put auto or overflow on the text area 🙂
<div style="position:absolute;left:25;top:160;width:650;height:330;overflow:auto"> output text here </div>
IF you are outputting in HTML you need to convert linebreack to <br> tags, since HTML ignores linebreak. Use [man]nl2br()[/man]
I couldn't figure out how to use any of those functions but the link leatherback supplied me had this in it which works:
$review = str_replace("\n", "<br>", $review);
that does the exact same thing as $review = nl2br($review);
Originally posted by chuckury I couldn't figure out how to use any of those functions
But thank you for clearing that up. Because in the example they showed it as a function.