cdmafra Posted September 24, 2013 Share Posted September 24, 2013 Hello. I have a problem with my website. When I introduce the symbols " or ' through text editor (PHP based), the database adds a / to the code. The problem happens in text, but also in pictures or embeded iframes, etc.. Example: Correct snipet of code to go to DB: Felipe Nasr: "seria ótimo chegar à F1 com o António Félix da Costa" How it goes to DB: Felipe Nasr: "/seria ótimo chegar à F1 com o António Félix da Costa/" I have localhost, and two different hosts to my website (.cwahi.net and .atspace.eu). The files are the same in the three cases, but this problem only happens in atspace.eu... Can it be a server problem? Thank you in advance! Quote Link to comment https://forums.phpfreaks.com/topic/282429-strange-problem-php-mysql/ Share on other sites More sharing options...
kicken Posted September 24, 2013 Share Posted September 24, 2013 I'm going to assume you mean it adds a \, not a /. In that case, it sounds like the problem server probably has magic_quotes enabled. You will need to either disable it via your php.ini if possible, or update your code to be able to handle that situation by checking for it using get_magic_quotes_gpc Quote Link to comment https://forums.phpfreaks.com/topic/282429-strange-problem-php-mysql/#findComment-1451129 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.