{ if (isset($value)) { echo $name . " is set to value: " . $value . "<br>"; } } print_debug_info("Search pattern", $keyword); } if (!empty($keyword)) { // We have work... $product_obj = new Product(); if ($keyword == "*") { $search_results = $product_obj->get_all_items(); } else { if ($category == "category") { //echo $keyword=$category1; $search_results = $product_obj->get_all_items_in_category($Keyword); } else { $search_results = $product_obj->get_array_search_results($keyword, $category); } } $number_of_search_results = $search_results->RecordCount(); $bg_color_change = 1; while ($search_element = $search_results->FetchRow()) { if ($bg_color_change) { $http_buffer .= "<tr bgcolor=#ffffaa>"; $bg_color_change = 0; } else { $http_buffer .= "<tr bgcolor=#ffffdd>"; $bg_color_change = 1; } $item_id = $search_element['item_id'];