I'm stuck with the following:
The mysql_real_esca pe_string(conn, to, from, strlen(from)) function does not return the escaped string. So how can I go about writing a wrapper for it so that it RETURNS the 'to' string which in turn helps me fill out a query in the following manner using sprintf:
Code:
unescaped_query = "INSERT into MYTABLE values ('%s', '%s')";
sprintf(escaped_query, unescaped_query,