whatever_noone
New member
On my website I take user submitted data (from a textarea) and put it in a MYSQL database. I expect apostrophes to be present so i use mysql_real_escape_string. That works fine.
Now on another section of the site, this data is pulled out of the mysql database and displayed on the page. The backslashes are for some reason displayed in there. I've tried stripslash but it doesn't do anything. I've tried str_replace but the backslash escapes itself, even if I use '\'.
How do I stop these "\"s from showing up?
Now on another section of the site, this data is pulled out of the mysql database and displayed on the page. The backslashes are for some reason displayed in there. I've tried stripslash but it doesn't do anything. I've tried str_replace but the backslash escapes itself, even if I use '\'.
How do I stop these "\"s from showing up?