katiallo Posted October 15, 2006 Posted October 15, 2006 Hi all Error when I click on new pruducts: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/hotling3/public_html/product_info.php on line 109 Here is my line 19: document.write('<?php echo '<a href="java script:popupWindow('' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); Can anyone see whats wrong? Thank you
katiallo Posted October 15, 2006 Author Posted October 15, 2006 Hi allError when I click on new pruducts: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/hotling3/public_html/product_info.php on line 109 Here is my line 19: document.write('<?php echo '<a href="java script:popupWindow('' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); Can anyone see whats wrong? Thank you Please can someone help?
DeadDingo Posted October 15, 2006 Posted October 15, 2006 It is complaining of line 109 not 19. What does that one say?
digbydo Posted October 15, 2006 Posted October 15, 2006 ?> you've got to remember that some typo's occasionally happen ;P did you not look at your copy of product_info.php to check? [sigh] one-click installation.. Dave's info
digbydo Posted October 15, 2006 Posted October 15, 2006 document.write('<?php echo '<a href="java script:popupWindow Delete the space between java and script. one-click installation.. Dave's info
Recommended Posts
Archived
This topic is now archived and is closed to further replies.