View Single Post
  #5  
Old 10-09-2003, 11:13 AM
 
MiguelS MiguelS is offline
 

Advanced Member
  
Join Date: Sep 2003
Posts: 36
 

Default

I tried those tags and they give me a parse error. I thought it was the php script declare tag, but i tried both <? or <?php and neither helped.

I tried just doing a simple echo and that also gave me a parse error.

It doesn't give me an error when i place just the php tags ({php}{/php}) but i definatley get an error when ever i place any php code in between them.

If my code does not work does anybody have any suggestions? i don't see how it will not. it will grab the current productid from withinside the product.tpl file. same for the current category and current page.

I'd understand if i declared an if else statement and used a constant productid and constant cat (like i am doing for a certain template but that's another issue.) but the productid increment is to whatever the value of productid is currently.

thanks for the help thus far. You guys are great.


ADDITIONAL NOTE: Just to be a bit more clear.

{php}
<? ?>
{/php}
OR
{php}
<?php ?>
{/php} <-------------- parse error.

{php}
{/php}<--------------- No parse error (but not very useful)
Reply With Quote