Hallo! Well, I think it would be better to use instead of: $err = $db->update_user($vars['member_id'], $vars); ... if ($err) { fatal_error("Cannot update user info: $err"); } something like: if (error) { show error } else { make an update } Due to current sub_routine, I was forced to do things that were not in the sequence of my list.