1)) $rows = $nPage * MAX_DISPLAY_SEARCH_RESULTS - MAX_DISPLAY_SEARCH_RESULTS; $productstable = $oostable['products']; $products_descriptiontable = $oostable['products_description']; $products_result_raw = "SELECT p.products_id, p.products_quantity, p.products_reorder_level, pd.products_name FROM $productstable p, $products_descriptiontable pd WHERE p.products_id = pd.products_id AND pd.products_languages_id = '" . intval($_SESSION['language_id']). "' AND p.products_quantity <= p.products_reorder_level GROUP BY pd.products_id ORDER BY pd.products_name ASC"; $products_split = new splitPageResults($nPage, MAX_DISPLAY_SEARCH_RESULTS, $products_result_raw, $products_result_numrows); $products_result = $dbconn->Execute($products_result_raw); while ($products = $products_result->fields) { $rows++; if (strlen($rows) < 2) { $rows = '0' . $rows; } ?> MoveNext(); } ?>
 
   ' . $products['products_name'] . ''; ?>    
display_count($products_result_numrows, MAX_DISPLAY_SEARCH_RESULTS, $nPage, TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?> display_links($products_result_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $nPage); ?>