MagickWomyn Posted August 27, 2006 Share Posted August 27, 2006 Parse error: syntax error, unexpected T_LOGICAL_AND in C:\Program Files\xampp\htdocs\catalog\shopping_cart.php on line 94 I get this message when I try to add a item to the cart. This is using a local install with Xampp and sample products in the store. I have the OSC 2.2 MS2 060817 update, FAQ mod and Basic Design Pack installed too. Here's the section that it refers to: // Push all attributes information in an array if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) { while (list($option, $value) = each($products[$i]['attributes'])) { echo tep_draw_hidden_field('id[' . $products[$i]['id'] . '][' . $option . ']', $value); $attributes = tep_db_query("select popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VALUES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa // where pa.products_id = '" . $products[$i]['id'] . "' where pa.products_id = '" . (int)$products[$i]['id'] . "' // and pa.options_id = '" . $option . "' and pa.options_id = '" . (int)$option . "' and pa.options_id = popt.products_options_id // and pa.options_values_id = '" . $value . "' and pa.options_values_id = '" . (int)$value . "' and pa.options_values_id = poval.products_options_values_id // and popt.language_id = '" . $languages_id . "' // and poval.language_id = '" . $languages_id . "'"); and popt.language_id = '" . (int)$languages_id . "' and poval.language_id = '" . (int)$languages_id . "'"); $attributes_values = tep_db_fetch_array($attributes); Any help solving this problem is appreciated! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.