thank you so much!! I uninstalled 'quantity product mod' add on and begun having problems with adding original attributes. but replacing the code with this , went back to working normally!
tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES . "
(products_id, options_id, options_values_id, options_values_price, price_prefix)
values ('" . (int)$products_id . "', '" . (int)$options_id . "', '" . (int)$values_id . "', '" . tep_db_input($value_price) . "', '" . tep_db_input($price_prefix) . "')");
hope this helps someone :)
x