Hi I'm working as an import on db Zen Cart and a procedure fails me quite often so I tried to do this:
try {
$ result = $ db-> Execute ($ query);
echo "Data successfully inserted. Insert ID:". $ VALUE_products_id;
} Catch (Exception $ e) {
echo $ e-> getMessage ();
}

But it does not work and the error:
1062 Duplicate entry '261228-7443 'for key' PRIMARY '
in:
[INSERT INTO products ...
still comes out as the fact is that stops me throughout the procedure. I would skip this thing what can I do?