Guest Posted August 22, 2006 Share Posted August 22, 2006 After altering the code on my product_info.php page i cannot view the page because of "Parse error: parse error, expecting `','' or `';'' in /var/www/html/shop/product_info.php on line 109" however i cannot seem to solve the problem. Here is the only peice of code that i am aware has changed: CHANGED SOMETHING IN HERE + DELETED A LINE FROM THE BOTTOM, this used to display an image with "click to enlarge" beneath it: <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . </noscript> I appreciate any help with this, this is also urgent as its a business website. Thanks Dave Link to comment Share on other sites More sharing options...
rick-b Posted August 22, 2006 Share Posted August 22, 2006 <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?> </noscript> You were missing to ; ?> from the end. ...it should work now :) The Coral Room ...store coming soon! 56 contibs added 28 custom creations + additions 6 future contribs 10+ tasks to complete Link to comment Share on other sites More sharing options...
Guest Posted August 22, 2006 Share Posted August 22, 2006 Thanks unfortunately im finding lots of other faults, where can i find a copy of the product_info.php code? Thanks Link to comment Share on other sites More sharing options...
Guest Posted August 22, 2006 Share Posted August 22, 2006 Can you see any other faults in this? <tr> <td class="main"> <?php if (tep_not_null($product_info['products_image'])) { ?> <table border="0" cellspacing="0" cellpadding="2" align="right"> <tr> <td align="center" class="smallText"> <script language="javascript"><!-- 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"'); ?>); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?> </noscript> </td> </tr> </table> Link to comment Share on other sites More sharing options...
rick-b Posted August 22, 2006 Share Posted August 22, 2006 What error message are you getting, if any? Heres the original image code without the enlarge image button. <?php if (tep_not_null($product_info['products_image'])) { ?> <script language="javascript"><!-- 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"'); ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"')'; ?> </noscript> <?php } ?> The Coral Room ...store coming soon! 56 contibs added 28 custom creations + additions 6 future contribs 10+ tasks to complete Link to comment Share on other sites More sharing options...
Guest Posted August 23, 2006 Share Posted August 23, 2006 Thank you for your help! much 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.