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 Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment 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> Quote Link to comment 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> Quote Link to comment 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']) . '">' . Quote Link to comment 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> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.