bigajosep Posted March 12, 2007 Posted March 12, 2007 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 <_<
Recommended Posts
Archived
This topic is now archived and is closed to further replies.