Hey, i have a problem. I have a form in php where people type in a review then it submits the data to Mysql. But i have the problem that when you take a new line on the form it doesnt put in a "<br>" when submited to the Mysql database. Can anyone explain how i can get php to replace a new line in a Multiline text box that converts the lines to <br>. Hope that makes sence.
Thanks for any help
Yep, makes perfect sence 😉
$review = ereg_replace("\r", "<br>", $review);
Do this JUST before you insert it into the database.
Hope that works out for yah!
-Travis