views:

161

answers:

1

When im inserting to the database on my dev server the text goes in fine, for example "that's" is "that's" in the db.

when uploading the exact same code to production server (hosted on a reseller account at bluehost) "that's" becomes "that\'s",

im not double escaping, its exactly the same code, what could be the issue here?

+1  A: 

The production server probably has Magic Quotes enabled. See the page about disabling it for various options to fix it.

Lukáš Lalinský