mysql_real_escape_string fix

corrected mysql_real_escape_string code
also added 2014 copyright