Jump to content

backslashes behind quotation marks


nemesis.2002

Recommended Posts

So I've made this php back end for a french website on my server everything works great but on the client's server when ever he updates it adds backslashes behind quotation marks. So let's say he writes (L'amour) it'll show up in the database like this (L\'amour) is their a way to fix this?

Link to comment
https://forums.phpfreaks.com/topic/131627-backslashes-behind-quotation-marks/
Share on other sites

The problem is actually to do with how the data is being escaped when entering the database.

 

Obviosuly its being escaped twice because the actual slashes should not be stored within the db and there shouldn't be any need to use stripslashes when retrieving results.

 

Have you got magic quotes enabled? And if so, are you escaping the data again before inserting into the database?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.