Jump to content

Unexpected parse error


DouglasWalker

Recommended Posts

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
Share on other sites

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.