|
That's because Magic Quotes in php is enabled. What you may do is to turn it off and make a temporary variable (let's say $tmp_str = $str) to hold your string. Make addslahes() to that variable ($tmp_str) and pass it on to your mysql query. If you want to send your string back to the browser, just echo your original variable ($str).
|