id != $teamid) { error_page("The name '$team_name' is being used by another team."); } if (strlen($team_name) == 0) { error_page("Must specify team name"); // Should be caught up with the post_str("name"), // but you can never be too safe. } $clause = sprintf( "name = '%s', name_lc = '%s', name_html = '%s', url = '%s', description = '%s', type = %d, country='%s'", $team_name, $team_name_lc, $team_name_html, $team_url, $team_description, $type, $country ); $ret = $team->update($clause); if ($ret) { Header("Location: team_display.php?teamid=$team->id"); } else { error_page("Could not update team - please try later."); } ?>