I have a problem. I need to pass a string to the MySQL database which has a \n
in it and I want to save it in the database but it is removing \n
and replacing it with line break.
PHP code to insert data to the database:
$sql = "INSERT INTO pusher_api_holder_v2 (name, text) VALUES ('$site_name', '$text')";