mysql_escape_string — escapes a string using the default character set

unsigned long mysql_escape_string(char * to,
                                  const char * from,
                                  unsigned long);
[Warning]

This function is deprecated and will be discontinued.

Please use mysql_real_escape_string() instead.

See also

mysql_real_escape_string()