[eluser]codex[/eluser]
[quote author="GSV Sleeper Service" date="1234304183"]if the product id is a PK, then you can use the IGNORE keyword when running 'load data infile', assuming you're running mysql.[/quote]
I'm not using 'load data infile' but 'fgetcsv'. I'm looking at 'array_unique', but I'm not sure how to implement that on the result array.
Another option is jsut to do the insert with duplicates and remove those after. But how do you say 'get all duplicate id's, then remove the duplicates but leave 1 unique'?