Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

why not auto increment for products_options


bigajosep

Recommended Posts

Posted

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 <_<

Archived

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

×
×
  • Create New...