Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error: parse error, expecting `','' or `';'' in /home/sites/pappadum/htdocs/product_info.php on line 152


vinaya

Recommended Posts

I have error in product_info.php it says parse error on line 152. Please help.

 

 

document.write('<?php echo '<a href="javascript:popupWindow"('' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . '&invis=0') . '')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="16" vspace="16"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>', ?>');

Link to comment
Share on other sites

The following looks ok: -

 

document.write('<?php echo '<a href="javascript:popupWindow"(\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . '&invis=0') . '\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="16" vspace="16"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');

Link to comment
Share on other sites

The error was removed from line 152 but it is now further in line 244 and 245

 

<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>

 

I hope you will hs time help me this time as well.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...