Top "Addslashes" questions

A PHP function to add backslashes (\) in front of each quote characters (" and ') and backslash characters (\).

Htmlentities vs addslashes vs mysqli_real_escape_string

I've been doing some reading on securing PHP applications, and it seems to me that mysqli_real_escape_string is …

php security mysql-real-escape-string addslashes
What's the difference between PHP's addslashes and mysql(i)_escape_string?

Possible Duplicate: mysql_real_escape_string VS addslashes If they don't do exactly the same, what's the difference? The delimiter …

php mysql security mysql-real-escape-string addslashes