jonneebee Posted July 3, 2007 Posted July 3, 2007 I am a newbie and barely dangerouse with code. I am getting this error : Parse error: syntax error, unexpected ';' in /home/tradewin/public_html/catalog/product_info.php on line 304 on this page: http://tradewinds-toyota.com/catalog/index.php?cPath=87_97 when I click on the details button. This is the code on the product-info.php page at line 304: <?php echo #echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?> Is this something simple? I appreciate your help ahead of time. JB
Guest Posted July 3, 2007 Posted July 3, 2007 I see the word ECHO repeated twice in the first line and I don't understand why that punctuation of # is there, either. Edit out the #echo in the first line so it reads as this instead: <?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?> Please post back when you've done that. :)
spax Posted July 3, 2007 Posted July 3, 2007 I see the word ECHO repeated twice in the first line and I don't understand why that punctuation of # is there, either. It is a comment, like // If the OP wants to comment out the Add to Cart button, make it this: <?php // echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?>
jonneebee Posted July 3, 2007 Author Posted July 3, 2007 Thank you so much! that snippet was the trick. I really appreciate your response, it saved my BEEP! JB
Recommended Posts
Archived
This topic is now archived and is closed to further replies.