Let me preface this question by saying I am a complete novice with mysql. Below is a description of the problem. Any help would be greatly appreciated. I have also included the part of the script that I believe pertains to the adition of the new player into the DB. This is only a par to fthe page in whole. I am running a gaming ladder script. When I enter a new player to a roster, It shows the new member only once on the roster. Upon refreshing the page, It shows the new entry twice. I checked the Db and found that it is submitting duplicate entries every time a new player is added to the DB. [code]if (isset($add_new_player)){ $query_count = "SELECT COUNT(*) FROM members WHERE team_id='$team_id'" or die("Error in query_count"); $result_count = mysql_db_query($db, $query_count, $dblink) or die("Error in result_count"); $max_count = mysql_result($result_count,0); $query_size = "SELECT * FROM ladders WHERE ladder_id='$ladder_id'" or die("Error in query_size"); $result_size = mysql_db_query($db, $query_size, $dblink) or die("Error in result_size"); while($links = mysql_fetch_array($result_size)) { $max_size = $links["max_size"]; } if ($max_count >= $max_size) { Echo " <TABLE BORDER=0 BGCOLOR='$table_bg_color' CELLPADDING='2' CELLSPACING='$fancy_table_border' WIDTH='$manage_table_width'> <TR BGCOLOR='$tr_bg_color'> <TD><CENTER><font class=text>Only $max_size player(s) are allowed per team</CENTER></TD> </TR> </TABLE> <TABLE BORDER=0 CELLPADDING='0' CELLSPACING='$fancy_table_border' WIDTH='$manage_table_width'> <TR> <TD HEIGHT=2></TD> </TR> </TABLE>"; return; } $query_new_player = "INSERT INTO members (ladder_id, team_id, name, last_modified, joined, modified, member_rank, accepted) values('$ladder_id','$team_id','$new_username','Never','$modified_date','Never','Member','yes')"; $result_new_player = @mysql_db_query($db, $query_new_player, $dblink) or die("Error in insert_new_player "); Echo " <TABLE BORDER=0 BGCOLOR='$table_bg_color' CELLPADDING='2' CELLSPACING='$fancy_table_border' WIDTH='$manage_table_width'> <TR BGCOLOR='$tr_bg_color'> <TD><CENTER><font class=text>$new_username was added on $modified_date</CENTER></TD> </TR> </TABLE> <TABLE BORDER=0 CELLPADDING='0' CELLSPACING='$fancy_table_border' WIDTH='$manage_table_width'> <TR> <TD HEIGHT=2></TD> </TR> </TABLE>"; } [/code]