Код: Выделить всё
$sql = "SELECT options_id, price_prefix, options_values_price,
attributes_display_only, attributes_price_base_included,
CAST(CONCAT(price_prefix, options_values_price) AS decimal(15,4)) AS value
FROM " . TABLE_PRODUCTS_ATTRIBUTES . "
WHERE products_id = " . (int)$product_id . "
**AND attributes_display_only != 0**
AND attributes_price_base_included=1
ORDER BY options_id, value";
$results = $db->Execute($sql);
$the_options_id = 'x';
$the_base_price = 0;
Подробнее здесь: https://stackoverflow.com/questions/786 ... ent-for-my