Parse error in line 152

Hi ,

I had this parse error in line 152 which I have removed but now the pics on the website are missing.Please help
[php]

<?php require('includes/application_top.php'); define("MAX_DISPLAY_PRODUCT_SPECIALS","5"); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO); $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); // Start "Category & Manufactureres Name in Product_info" $categories_name_query = tep_db_query("select c.categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " c where c.categories_id = '" . (int)$current_category_id . "' and c.language_id = '" . (int)$languages_id . "'"); $category = tep_db_fetch_array($categories_name_query); // Start "Category & Manufactureres Name in Product_info" $product_info_query = tep_db_query("select products.products_id, products_description.products_name, products_description.products_description, products.products_model, products.products_quantity, products.products_image, products_description.products_url, products.products_price, products.products_tax_class_id, products.products_date_added, products.products_date_available, products.manufacturers_id, manufacturers.manufacturers_name FROM products LEFT JOIN manufacturers ON products.manufacturers_id = manufacturers.manufacturers_id left join products_description on products_description.products_id = products.products_id WHERE products.products_status = '1' and products.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and products_description.language_id = '" . (int)$languages_id . "'"); ?>

<!doctype html public “-//W3C//DTD HTML 4.01 Transitional//EN”>

> <?include "meta_tags.php";?> <? // Randelia Custom_META_Tags_Per_Item. Includes TITLE! echo ShowMETA('product_info', $products_id, $languages_id); ?> <?php // Begin Dynamic Meta Tag Code if (file_exists(DIR_WS_INCLUDES . 'meta_tags.php')) { require(DIR_WS_INCLUDES . 'meta_tags.php'); } // End Dynamic Meta Tag Code ?> <?php //require(DIR_WS_INCLUDES . 'coolmenu.php');

?>

<?php require(DIR_WS_INCLUDES . 'header.php'); ?> <?php require(DIR_WS_INCLUDES . 'left_pane.php'); ?>
<?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?> <?php if ($product_check['total'] < 1) { require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT); ?> <?php } else { $product_info_query = tep_db_query("select p.*, pd.*, ptc.* from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, ".TABLE_PRODUCTS_TO_CATEGORIES." ptc where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and ptc.products_id=p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_info = tep_db_fetch_array($product_info_query);
$manufacturer_info_query = tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id=".$product_info['manufacturers_id']);
$manufacturer_info = tep_db_fetch_array($manufacturer_info_query);

if(mysql_num_rows($manufacturer_info_query)){
 $product_info = array_merge($product_info, $manufacturer_info);
}
tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'");

if (($new_price = tep_get_products_special_price($product_info['products_id'])) && PRODUCT_LIST_PRICE) {
  $products_price = 'Price: <s class="specialPrice">' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';
} elseif(PRODUCT_LIST_PRICE) {
  $products_price = 'Price: ' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));
}

//add product title to product page
$products_name = $product_info[‘products_name’];

//to remove model from product page comment out these lines
//*
if (tep_not_null($product_info[‘products_model’])) {
// Start “Category & Manufactureres Name in Product_info”
// $products_name_cat = $product_info[‘products_name’] . ‘
’;
if(PRODUCT_LIST_MODEL) $products_name_cat .= ‘’.BOX_HEADING_MANUFACTURERS.’: ’ . $product_info[‘manufacturers_name’] . ‘
’;
if(PRODUCT_LIST_MANUFACTURER) $products_name_cat .= ‘’.BOX_HEADING_MANUFACTURERS.’: ’ . $product_info[‘manufacturers_name’] . ‘
’;
if(PRODUCT_LIST_WEIGHT && ceil($product_info[‘products_weight’])) $products_weight .= 'Size: ’ . $product_info[‘products_weight’] . ‘
’;
if(PRODUCT_LIST_GENDER && $product_info[‘products_gender’]) $products_gender .= ‘Gender: ’ . $product_info[‘products_gender’] . ‘
’;
// End “Category & Manufactureres Name in Product_info”
} else {
//$products_name_cat = $product_info[‘products_name’] . ‘
’;
if(PRODUCT_LIST_MANUFACTURER) $products_name_cat .= ‘’.BOX_HEADING_MANUFACTURERS.’: ’ . $product_info[‘manufacturers_name’] . ‘
’;
if(PRODUCT_LIST_WEIGHT && ceil($product_info[‘products_weight’])) $products_weight .= 'Size: ’ . $product_info[‘products_weight’] . ‘
’;
if(PRODUCT_LIST_GENDER && $product_info[‘products_gender’]) $products_gender .= 'Gender: ’ . $product_info[‘products_gender’] . ‘
’;
}
//end comment out model from product page
//*/

if(!$HTTP_GET_VARS[‘cPath’]){
$HTTP_GET_VARS[‘cPath’] = $general->get_cpath($product_info[‘categories_id’]);
$HTTP_GET_VARS[‘cPath’] = join("_", array_reverse($HTTP_GET_VARS[‘cPath’][0]));
}

$products_name_pos = strpos($products_name, " ");

if ($products_name_pos !== false) {
$products_name = " " .substr($products_name,0,$products_name_pos) .
" " .substr($products_name,$products_name_pos)."
";
}

?>


<? include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?>






  <?= $products_name?>  



*/ ?>
   <tr><td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td></tr>
   <tr>
    <td>
<?php if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_also_purchased(3600); } else { include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } } ?>
    </td>
   </tr>

   </form>
  </table>
  </td>
 </tr>
</table>
</td>
<? if (tep_not_null($product_info['products_image'])){?> <?php echo '' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '
' . TEXT_CLICK_TO_ENLARGE . '
'; ?> <?}?>

<?= $products_price?>

<?php echo stripslashes($products_name_cat); ?>

<?php echo stripslashes($products_weight); ?>


		<p><?php echo stripslashes($product_info['products_description']); ?></p>
		
		<br>
		<form name="cart_quantity" action="?action=add_product" method="post">
	<!--  <?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?> -->
	 </td>
	 </tr>
     <tr><td class="title" valign="top">
<? $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'"); $products_attributes = tep_db_fetch_array($products_attributes_query); if ($products_attributes['total'] > 0) { ?>
    <table border="0" cellspacing="0" cellpadding="2">
     <tr><td class="main" colspan="2"><?php echo TEXT_PRODUCT_OPTIONS; ?></td></tr>
<?php $products_options_name_query = tep_db_query("select distinct popt.products_options_id, popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' order by popt.products_options_name"); while ($products_options_name = tep_db_fetch_array($products_options_name_query)) { $products_options_array = array(); $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'"); while ($products_options = tep_db_fetch_array($products_options_query)) { $products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']); if ($products_options['options_values_price'] != '0') { $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } } if (isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']])) { $selected_attribute = $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']]; } else { $selected_attribute = false; } ?>
     <tr>
      <td class="main"><?php echo $products_options_name['products_options_name'] . ':'; ?></td>
      <td class="main">
<? if(sizeof($products_options_array) > 1) echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); else echo ''.$products_options_array[0]['text']; ?>
	  </td>
     </tr>
<? } ?>
    </table>
<? } ?>
	 </td></tr>
	 </table>
	</td>
   </tr>
   <tr><td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td></tr>
<?php $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); $reviews = tep_db_fetch_array($reviews_query); if ($reviews['count'] > 0) { ?>
   <tr><td class="main"><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td></tr>
   <tr><td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td></tr>
<?php } if (tep_not_null($product_info['products_url'])) { ?>
   <tr><td class="main"><?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info['products_url']), 'NONSSL', true, false)); ?></td></tr>
   <tr><td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td></tr>
<?php } ?>
   <tr>
    <td>
	<table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
     <tr class="infoBoxContents">
      <td>
	  <table border="0" cellspacing="0" cellpadding="2">
       <tr><td class="main"><?php echo tep_draw_hidden_field('wishlist_action', 'add_wishlist') . tep_image_submit('button_wishlist.gif', IMAGE_BUTTON_ADD_WISHLIST, 'onClick="document.cart_quantity.action="'. tep_href_link2(FILENAME_WISHLIST, tep_get_all_get_params(array('action')) . 'action=add_wishlist') . '";document.cart_quantity.submit();"'); ?></td>
	   <td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>
	   </tr>
       <tr><td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">'.tep_image_button('button_write_review.gif', IMAGE_BUTTON_WRITE_REVIEW).'</a>'; ?></td></tr>
      </table>
	  </td>
     </tr>
	 </table>
	</td>
   </tr>
<? // something that is not useful :) /*
<?php echo '' . tep_image('images/pdf_big.gif') .''; ? > - <?php echo 'Download PDF'; ? >
<? require "includes/right_pane.php";

?>

<? include "includes/footer.php"; ?> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>[/php]

Since the question is about line 152, what was that line before you took it out? chances are, it was missing a ; at the end or a quote somewhere.

Try changing
This
[php]document.write(’<?php echo '' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="16" vspace="16"') . '
' . TEXT_CLICK_TO_ENLARGE . '
'; ?>’);
[/php]
With this
[php]
document.write(’<?php echo '' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="16" vspace="16"') . '
' . TEXT_CLICK_TO_ENLARGE . '
'; ?>’);

[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service