magic_quotes_gpc is turned on.
when i print a variable from $_POST the slashes are added.
however, when i insert that same variable into a mysql database the slashes aren't added.
why does this happen?
$value = $_POST['value'];
print $value; //slashes are there
$query = "INSERT INTO test VALUES(\"$value\")"; //slashes aren't there in the database