replace  and update content edit/output for mysqli