I have all my inputs from the user (that end up in a mysql table) go through mysql_real_escape_string() per php.net and most forum users. I honestly don't know what it does internally.
What I do know is that running on my xampp light installation it does not effect the user input, but when I upload to my production Linux server it adds a '\' to the user input whenever the user uses an apostrophe such that It's becomes It\'s.
What is the fix for this?
alex
492k205 gold badges890 silver badges992 bronze badges
asked Aug 12, 2011 at 4:35
user656925
-
Please show us the code.Johan– Johan2011年08月12日 04:36:52 +00:00Commented Aug 12, 2011 at 4:36
-
I'll do it and I might add that magic quotes is a good name.user656925– user6569252011年08月12日 04:40:41 +00:00Commented Aug 12, 2011 at 4:40
1 Answer 1
You have magic_quotes enabled on your remote server. Disable it.
answered Aug 12, 2011 at 4:37
alex
492k205 gold badges890 silver badges992 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
lang-php