Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

why not auto increment for products_options


Recommended Posts

Why isn't products_options table's id auto increment?

instead oscommerce does this (for the products_options_values table which isn't autoincrement as well):

$max_values_id_query = tep_db_query("select max(products_options_values_id) + 1 as next_id from " . TABLE_PRODUCTS_OPTIONS_VALUES);

$max_values_id_values = tep_db_fetch_array($max_values_id_query);

$next_id = $max_values_id_values['next_id'];

I'm going to change mine to autoincrement so i can mess with it easier <_<

Link to comment
Share on other sites


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

  • Create New...