Is it in the database that way? If so, you probably need to disable magic_quotes_gpc in your PHP configuration (and run an update query on your DB to get rid of the slashes that ended up in there.)
If you cannot modify the PHP config, then you should run stripslashes() on the inputs before processing them and adding them to your DB.
If that is not feasible for some reason, then you can run stripslashes() on the output, but that's really just a band-aid and not a real fix.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
How does one disable magic_quotes_gpc. Also there are no slashes in the database the slashes show up when I echo results. So D'Souza is in the database correctly but prints as D\'Souza.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Bookmarks