Escapes special characters in a string for use in an SQL statement.
escapedtext = mysql_real_escape_string( mysql, self.name );