Page 1 of 1

mysql_escape_string() vs addslashes()

Posted: Sun Aug 07, 2005 5:29 pm
by raghavan20
1. Can any of you tell me with an example, what is the difference between mysql_escape_string() and addslashes()?
2. Which should I use mysql_escape_string() or mysql_real_escape_string()? Are there any particular contexts in which they have to applied accordingly?

Posted: Sun Aug 07, 2005 6:12 pm
by feyd
these have been talked about several times in several threads in the last day... look around please.