Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • ...though really, you should just use PreparedStatement instead of mysql_real_escape_string(). Commented Jul 30, 2011 at 1:29
  • there shouldn't be any slashes on it after retrieving it back from the database, unless you've double escaped it. @Matt: why? if he properly escapes everything, what difference does it make? (i'm honestly curious) Commented Jul 30, 2011 at 1:42
  • 1
    @Mark see the sql-injection FAQs. Start with these: stackoverflow.com/questions/60174 stackoverflow.com/questions/110575 stackoverflow.com/questions/714704 Commented Jul 30, 2011 at 2:00