id, time(), $name, $name_lc, $url, $type, $name_html, $description, $country, 0 ); $result = mysql_query($query); if ($result) { $teamid = mysql_insert_id(); $team_result = mysql_query("select * from team where id = $teamid"); $new_team = mysql_fetch_object($team_result); mysql_free_result($team_result); user_join_team($new_team, $user); echo " $teamid "; } else { xml_error(-137, "could not create team"); } ?>