I'm trying to sanitize user input in PHP for saving data in a query. The problem are special chars like ' or ".
I tried with htmlspecialchars(), addslashes() and mysql_real_escape_string() but they aren't working. What's the best and fast way to do it?