You need to know from the products_attributes table the values of:
options_id
options_values_id
attributes_image
you can see these if you browse the table:
products_attributes
via phpMyAdmin ...
Then, to make, for example, all Color (options_id 1) Orange (options_values_id 25) with the Attributes image color_orange.gif (attributes/color_orange.gif) you could use:
Code:
UPDATE products_attributes SET attributes_image = 'attributes/color_orange.gif' WHERE options_id = 1 and options_values_id = 25;
in either the SQL of the phpMyAdmin or the Tools ... Install SQL Patches ... of your Zen Cart Admin ...