INSERT IGNORE, mysql dev :)
edit - based on the comments below: ya, you need to have the gamertag column as a unique index.
and those who supported could accept this for "understanding."
edit - update the response completing the response:
$gamertag = "l RaH l";
mysql_query("INSERT IGNORE INTO gamertags(gamertag)VALUES ('".$gamertag."')");
don't forget to specify a unique index-ify column gamertags
source
share