0

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);
1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by MDanz
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.