prudens Posted June 1, 2008 Share Posted June 1, 2008 Hi, I have a textarea. I want to be able to parse the value of the textarea, and change all the <enter>/New Line to <br>. Is there anyway to do that? Link to comment https://forums.phpfreaks.com/topic/108190-solved-parse-as/ Share on other sites More sharing options...
radar Posted June 1, 2008 Share Posted June 1, 2008 $data = mysql_result(mysql_query("SELECT textarea FROM about"), 0); $data = nl2br($data); echo $data Link to comment https://forums.phpfreaks.com/topic/108190-solved-parse-as/#findComment-554574 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.