Jump to content

Recommended Posts

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!

Link to comment
https://forums.phpfreaks.com/topic/282429-strange-problem-php-mysql/
Share on other sites

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.