Jump to content

mysql query duplicate records


MDanz

Recommended Posts

the belwo 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?

 

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);

Link to comment
https://forums.phpfreaks.com/topic/206105-mysql-query-duplicate-records/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.