this is driving me nuts... im at least trying to compare the ip address... but that aint working
$query = "
INSERT INTO
stats (bid,bname,bversion,osname,osversion,type,ip,lang)
VALUES ('$stats[0]','$stats[1]','$stats[2]','$stats[3]','$stats[4]','$stats[5]','$stats[6]','$stats[7]')
WHERE (ip <> '$stats[6]')";
Invalid query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE (ip <> '192.168.1.1')'