Using PHP, what is the best way to store special characters (like the following) in a MSQUL database, to avoid injections.
« \" \' é à ù
Th
Use utf8 encoding to store these values.
utf8
To avoid injections use mysql_real_escape_string() (or prepared statements).
mysql_real_escape_string()
To protect from XSS use htmlspecialchars.
htmlspecialchars