I have problem, I would like to make update when hash is same. hash is unique at table. I cant find the right way to do this.
mysql_query("INSERT INTO shop_product_search3_muokattu2
(id, hash, product_name, type, manufacturer, mini_products) VALUES
(NULL, '".$hash."', '".$row['product_name']."', '".$row['type']."', '". $row['manufacturer']."', '".$row['mini_products']."')
ON DUPLICATE KEY
UPDATE mini_products += VALUES('".$mini_products."') ")
or die(mysql_error());