Hey All,
After some time, I finally got back to Php / mySQL, hoping to finally get my site working.
I have a text-box where users can insert information, and submit it to a MySQL database. Later this data is substracted from the database, and displayed in normal webpage. I would like to be able to show the text in the formatting the user submitted it, so that is including line-breaks etc.
Of course I will have to add slashes and replace any HTML present in the submitted text, to avoid query-problems etc.
Can anybody please advise me on how to replace text formatting to html (Such as replacing a line-break for <br> etc.)
Anybody an idea?
Thanks!
Jelle