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
https://forums.phpfreaks.com/topic/223346-unexpected-parse-error/
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>

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.