RawUrl kodlamak sorun

1 Cevap

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

I Slike haline mysql_real_escape_string yok $url_variable = "Off-St.Mark's-Road" ... sonra

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

mysql sorguda bir sorun yaratıyor ki ...

ben bu atlatmak nasıl ... rawurlencode komut dosyasına değişkenler geçmek için gerekli olan ve i güvenli veri yapmak için mysql_real_escape_string yapmak istiyorum ...

1 Cevap

magic_quotes_gpc Bu deneyin, sunucu üzerinde açık gibi görünüyor:

if (get_magic_quotes_gpc())
{
   $text = stripslashes($your_var);
}

$text = mysql_real_escape_string($text);