I want to do an INSERT SELECT query like this:
INSERT INTO `tableName` (SELECT * FROM `anotherTable`)
The problem is when it finds a duplicate value the whole thing will stop, really I just want it to continue and skip the duplicates.
I know I can do this via the cmd line by using the -f parameter to force it, but I want to do it with PHP. Is there a force or ignore errors option somewhere in the PHP mysql_* functions?