DouglasWalker Posted January 4, 2011 Share Posted January 4, 2011 Hi I have a piece of code posted below. I want to remove the references to the products model but I get confused by the opening closing brackets etc and keep getting parse errors Could someone offer some hints for me please. All help appreciated <tr> <td class="main"><?php echo '<b> <a href="' . tep_href_link(FILENAME_YES, 'products_name=' . $product_info['products_name'] . '&products_model=' . $product_info['products_model']) . '">' . TEXT_STOCK . '</a></b>';?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> Doug Link to comment https://forums.phpfreaks.com/topic/223346-unexpected-parse-error/ Share on other sites More sharing options...
jake2891 Posted January 4, 2011 Share Posted January 4, 2011 i dont see any parse errors there must be an error in your tep_draw_separator function? Link to comment https://forums.phpfreaks.com/topic/223346-unexpected-parse-error/#findComment-1154548 Share on other sites More sharing options...
jake2891 Posted January 4, 2011 Share Posted January 4, 2011 i dont see any parse errors there must be an error in your tep_draw_separator function? or your tep_href_link function Link to comment https://forums.phpfreaks.com/topic/223346-unexpected-parse-error/#findComment-1154549 Share on other sites More sharing options...
DouglasWalker Posted January 4, 2011 Author Share Posted January 4, 2011 Hi Jake Sorry i should have been clearer. I want to remove the portion of code that is the products model number. When I try to do this I get parse errors because I leave out a ; or ( . { [ or something. This is the modified code below can you see what I am doing wrong? Really appreciate your help <tr> <td class="main"><?php echo '<b> <a href="' . tep_href_link(FILENAME_YES, 'products_name=' . $product_info['products_name']) . '">' . TEXT_STOCK . '</a></b>';?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> Link to comment https://forums.phpfreaks.com/topic/223346-unexpected-parse-error/#findComment-1154566 Share on other sites More sharing options...
revraz Posted January 4, 2011 Share Posted January 4, 2011 So basically you want to remove this chunk? <tr><td class="main"><?php echo '<b><a href="' . tep_href_link(FILENAME_YES,'products_name=' .$product_info['products_name']) . '">' .TEXT_STOCK . '</a></b>';?></td></tr> Link to comment https://forums.phpfreaks.com/topic/223346-unexpected-parse-error/#findComment-1154571 Share on other sites More sharing options...
DouglasWalker Posted January 4, 2011 Author Share Posted January 4, 2011 Hi I want to remove this part but I am leaving something in I shouldn't be . '&products_model=' . $product_info['products_model']) . '">' . Link to comment https://forums.phpfreaks.com/topic/223346-unexpected-parse-error/#findComment-1154575 Share on other sites More sharing options...
DouglasWalker Posted January 4, 2011 Author Share Posted January 4, 2011 Hi many thanks you solved it <tr><td class="main"><?php echo '<b><a href="' . tep_href_link(FILENAME_YES,'products_name=' .$product_info['products_name']) . '">' .TEXT_STOCK . '</a></b>';?></td></tr> Link to comment https://forums.phpfreaks.com/topic/223346-unexpected-parse-error/#findComment-1154579 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.