okay let me explain this one and let me try to eplain this to where u guys understand me this time so please let me try okay when doing <?php {
$POST = valid_post($POST);
$query2 = "INSERT into `divisions_team_list` (division, division_approved, tag, title, location, location2, leader, manager, scheduler, irc_network, irc_channel, post, password) values(\"".$_GET['d']."\", \"1\", \"".$_POST["tag"]."\", \"".$_POST["title"]."\", \"".$_POST["location"]."\", \"".$_POST["location2"]."\", \"".$_SESSION["xpl_gfx_suserid"]."\", \"".$_POST["manager"]."\", \"".$_POST["scheduler"]."\", \"".$_POST["irc_network"]."\", \"".$_POST["irc_channel"]."\", \"".$_POST["post"]."\", \"".md5("!".md5("*".$_POST["password"]."*")."!")."\")";
$result2 = mysql_query($query2);
$query3 = "INSERT into `divisions_team_members` (division, teamid, playerid, GUID) values(\"".$_GET['d']."\", \"6\", \"".$_SESSION["xpl_gfx_suserid"]."\", \"".$_POST["GUID"]."\")";
$result3 = mysql_query($query3);
print '<div id="news">'; ?>
the \"6\", from $query3 amd that post is the teamid i need the 6 to get the auto_increment from divisions_team_list into the teamid in table divisions_team_members how do i do that so when they register the team it will auto add them to it?