I have a script that stores data users fill out with a form in a mysql database. For the text part of it, I use a a variable of type mediumtext. I've noticed when I use ' and " and some other characters inside the text, the script screws up.
How can I save those text messages into a mysql database?