What is the difference between mysql_real_escape_string and addslashes?
<p><code>mysql_real_escape_string</code> and <code>addslashes</code> are both used to escape data before the database query, so what's the difference? (This question is not about parametrized queries/PDO/mysqli)</p>
