Hi there,
So I have a database driven site. There is an online diary, which allows the end user to add/edit and delete events. When data is entered into the database it is sanitised using mysqli_real_escape_string.
When the user edits data, the event data is retrieved from the DB, and displayed in a form, with slashes present. When the user updates the form, the slashes are escaped, and so the DB holds data like this:
“Whether you\\\'re a total newbie, or a pro, why not pop along to our Ukulele Group?”
So in order to fix this I have used the stripslashes function on data that is retrieved from the DB. This has rectified the issue when tested locally, but not when online.
Does anyone know of any particular reason why that would be the case? I have checked the remote DB and removed instances of escaped backslashes.
Many thanks,
Mike