How to pass apostrophies from text areas to MySQL using PHP
问题 I have a text area that users add notes too. On the next page I use the $_POST[Comments] to show what was typed. I have an edit button to go back and see what was typed and edit the notes but when I show the $_POST[Comments] it shows everything up to an apostrophe. Example: Originally typed: Let's try this. When Editing: Let Now when I pass it to the server to do an SQL add I use the following function to protect against SQL injection function keepSafe($value) { if (get_magic_quotes_gpc()) {