nrieger Posted November 2, 2005 Posted November 2, 2005 Hi, After doing the contribution of the meta tags which is to edit the "products_info.php" i am getting the following error when i click on a product to display the description the following error displays Parse error: parse error, unexpected '<' in /homepages/3/d136923176/htdocs/catalog/product_info.php on line 16.... Here is the code i edited exactly as told the text in bold was edited....... require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO); <?php //begin dynamic meta tags query --> $the_product_info_query = tep_db_query("select pd.language_id, p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'" . " and pd.language_id ='" . (int)$languages_id . "'"); $the_product_info = tep_db_fetch_array($the_product_info_query); $the_product_name = strip_tags ($the_product_info['products_name'], ""); $the_product_description = strip_tags ($the_product_info['products_description'], ""); $the_product_model = strip_tags ($the_product_info['products_model'], ""); $the_manufacturer_query = tep_db_query("select m.manufacturers_id, m.manufacturers_name from " . TABLE_MANUFACTURERS . " m left join " . TABLE_MANUFACTURERS_INFO . " mi on (m.manufacturers_id = mi.manufacturers_id and mi.languages_id = '" . (int)$languages_id . "'), " . TABLE_PRODUCTS . " p where p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and p.manufacturers_id = m.manufacturers_id"); $the_manufacturers = tep_db_fetch_array($the_manufacturer_query); // end dynamic meta tags query --> ?> $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_check = tep_db_fetch_array($product_check_query);
julianpuje Posted November 2, 2005 Posted November 2, 2005 Your opening and closing <?php and ?> appear to be wrong before and after the meta tag statement you have added. I don't use the contribution your adding but i would remove those tags and see what happens. You already have a <?php at the start of the page (not shown) but it doesn't close before you have another <?php in your example. Thats where the error is coming from. HTH Julian A little knowledge is dangerous, I SHOULD KNOW. If Life Begins At 40, What ends????
Recommended Posts
Archived
This topic is now archived and is closed to further replies.