I'm doing a
sql and I needed to change the single quotes, because for example a name O'Connor breaks the structure.
I've tried putting:
str_replace("'", "\'", $cadena);
And they do not work for me. The latter if I convert the single quotes, but also convert the symbols
> , etc, and should not be converted.
Oh, and I've also tried with
addslashes but nothing ...
Thank you very much in advance !!