Hey all, new here. Got a question about escaped strings to MySQL. I'm using mysql_real_escape to clean up passed data. My question is, when I do that, should the data be stored physically in MySQL with the slashes or not?
That is, if the text is: joe's
Should that be stored in MySQL as joe's, or joe\'s
?
To make things more complicated, my dev box doesn't have magic quotes on, but the webhost does (and won't let me disable it), so I have to see if there's a working solution for both environments.
(when I use just mysql_real_escape on dev box, it stores just the ' in mysql, but when I move it to webhost, it stores \', and not sure which is right).