This question already has an answer here:
- How can I prevent SQL injection in PHP? 28 answers
can i update table and set JSON string with PDO? Because PDO is removing "\" character and diacritics is not working please help.
->query("UPDATE products SET name = '".$new_name."' WHERE shop = '1' AND id = 'a9t8'");
</div>