Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

products_options_values: needs auto_increment?


fnatter

Recommended Posts

hi,

 

I am trying to insert a row into products_options_values:

 

tep_db_perform (TABLE_PRODUCTS_OPTIONS_VALUES,
                     array('language_id' => tep_db_prepare_input ($german_language_id),
                           'products_options_values_name' => tep_db_prepare_input ("size")));

(I do this once for German, once for English)

 

but this fails:

1062 - Duplicate entry '0-2' for key 1

because products_options_values.products_options_values_id is not declared

with auto_increment. Why is this so?

Do I have to do it by hand (find out largest pkey and add 1 to it)?

 

thanks,

Linux from *scratch* (www.gnu.org/software/emacs/)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...