I am using mysql_real_escape_string on anything that the user inputs that is entered into my database which deals with things like ' and such in words. When I output what I have saved in the database all the ' are shown as \'. Should I be running stripslashes () on the output?
Another strange occurance is that the ' is only shown as \' on my webspace but when running localally with xampp it outputs correctly as '.
Can anyone shed any light on this?
Thanks
Another strange occurance is that the ' is only shown as \' on my webspace but when running localally with xampp it outputs correctly as '.
Can anyone shed any light on this?
Thanks