the below code is causing two records to be inserted into mysql. I have no idea why. when i remove it no record is entered. When i add it two duplicate records are entered. Any idea why? it is in an if statement. What would cause it to be inserted twice?

query2 = "INSERT INTO Stacks";
															  $query2 .= "(`username`,`reply`,`number`,`ip`,`posted`,`origin`,`keywords`,`avatar`,`Positive`,`Negative`) VALUES ('$usernames','$info','$idtwo','$ip',NOW(),0,'$keywords','$avatarreply','0','0')";
															  $results2 = mysql_query($query2);

nvm

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.