0 && MIN_DISPLAY_ALSO_PURCHASED > 0) { $also_purchased_products = $db->Execute(sprintf(SQL_ALSO_PURCHASED, (int)$_GET['products_id'], (int)$_GET['products_id'])); $num_products_ordered = $also_purchased_products->RecordCount(); $row = 0; $col = 0; $list_box_contents = array(); $title = ''; // show only when 1 or more and equal to or greater than minimum set in admin if ($num_products_ordered >= MIN_DISPLAY_ALSO_PURCHASED && $num_products_ordered > 0) { if ($num_products_ordered < SHOW_PRODUCT_INFO_COLUMNS_ALSO_PURCHASED_PRODUCTS) { $col_width = floor(100/$num_products_ordered); } else { $col_width = floor(100/SHOW_PRODUCT_INFO_COLUMNS_ALSO_PURCHASED_PRODUCTS); } while (!$also_purchased_products->EOF) { $also_purchased_products->fields['products_name'] = zen_get_products_name($also_purchased_products->fields['products_id']); if ($col > 0 && $col < SHOW_PRODUCT_INFO_COLUMNS_ALSO_PURCHASED_PRODUCTS) { $tm_param = 'style="margin-left:0px;"'; } else { $tm_param = ''; } $list_box_contents[$row][$col] = array('params' => 'class="centerBoxContentsAlsoPurch"' . ' ' . 'style="width:' . $col_width . '%;"', 'text' => '