Possible Duplicate:
PHP, why do you escape my quotes?
If I input the text don't for example in an input field and then try to display it or save it to MySQL with PHP mysqli Prepared Statements I get an extra backslash before the single quote.
$name = $_POST['name'];
echo "name=($name)";
This outputs: don\'t and I also gets this extra backslash stored in MySQL.
How could I avoid this and still be able to input backslashes?
Regards, Magnus Strand