use sprintf and mysql_real_escape_string values