mysql_escape_string() vs addslashes()
Posted: Sun Aug 07, 2005 5:29 pm
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?
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?