Alright. how about...can anyone explain to me how this piece of code is working:
PHP Code:
$attributes = $db->Execute("select products_options_id, products_options_value_id, products_options_value_text, applicants_id
from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . "
where customers_id = '" . (int)$_SESSION['customer_id'] . "'
and products_id = '" . zen_db_input($products->fields['products_id']) . "' " . $order_by);
while (!$attributes->EOF) {
$this->contents[$products->fields['products_id']]['attributes'][$attributes->fields['products_options_id']] = $attributes->fields['products_options_value_id'];
//CLR 020606 if text attribute, then set additional information
if ($attributes->fields['products_options_value_id'] == PRODUCTS_OPTIONS_VALUES_TEXT_ID) {
$this->contents[$products->fields['products_id']]['attributes_values'][$attributes->fields['products_options_id']] = $attributes->fields['products_options_value_text'];
}
$attributes->MoveNext();
Specifically the while statement.
Thanks