rawurl encode problem

Posted by pradeep on Stack Overflow See other posts from Stack Overflow or by pradeep
Published on 2010-05-11T17:59:53Z Indexed on 2010/05/11 18:04 UTC
Read the original article Hit count: 261

Filed under:

hi, i am using rawurlencode($url_variable) while passing to a script.. when i receive the variable in the script ,before passing this variable to mysql ,i was doing mysql_real_escape_string . now the problem is like when there is a variable like

$url_variable = "Off-St.Mark's-Road" ...after i do mysql_real_escape_string it become slike

Off-St.Mark\\'s-Road .

which is creating a problem in mysql query ...

how i get over this...rawurlencode is necessary to pass variables to the script and i want to do mysql_real_escape_string to make the data safe...

© Stack Overflow or respective owner

Related posts about php