i want to insert text contain \n and \" but when i did it with pdo :
$received_data = file_get_contents("php://input");
$sth = $connect->prepare("UPDATE USERS SET botconfig='$received_data' WHERE id=1");
$result = $sth->execute();
the value of $received_data like this :
"start: \nsay "How i can help two three " \nsay "bla bla " \n
what i found in the mysql database :
start:
say "How i can help two three "
say "bla bla "
the \n and /" disappear from the database.
thanks for any help.