ב"ה
נכון לחיבור MYSQL יש קידוד שהוא מחובר איתו?
שאפשר לשנות עם SET NAMES?
אז אם אתה משתמש ב real אז אתה יכול לתת לפונקציה בתור ארגומנט שני את המשתנה שמכיל את החיבור ואז היא שמה \ לפי הקידוד.
ואם אתה לא מביא לה אז היא עובדת כמו הרגילה, בלי ה real.
זה תרגום מאנגלית:
קוד:
This function is identical to mysql_real_escape_string() except that mysql_real_escape_string() takes a connection handler and escapes the string according to the current character set. mysql_escape_string() does not take a connection argument and does not respect the current charset setting.