Remove backslashes before single quotes during the string insert

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mageswar005
    New Member
    • Mar 2008
    • 72

    Remove backslashes before single quotes during the string insert

    hi,
    In POST value i got a string like " I can't able to do ";
    the above string was stored in a table, In that table the string is stored like
    " I can\'t able to do "; How can i avoide \ before ' during insertion.Pleas e share my problem to rectify
  • harshmaul
    Recognized Expert Contributor
    • Jul 2007
    • 490

    #2
    the backslash is an escape charachter, its one of the mechanisms that stop sql injection.

    Comment

    Working...