I have a textarea and the user can type in single quotes and double quotes, but before I insert this data in the database, I would like to replace the quotes with \' and double quotes \" I tried to do the following:
$_POST = str_replace("'", "\'", $_POST);
$_POST = str_replace(""", "\"", $_POST);
when I run this, I just get a blank screen no errors, am i doing this wrong?