View Single Post
  #5  
Old 03-24-2008, 05:43 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default Re: Help adding a <br> tag in a php file for listed products

When i am using tpl files if i want to display something in a particular way for customers to see VS admin/provider users etc.. i would apply something like the below.

example.

"C" means customer-end users:

{if $usertype eq "C"}
<FONT class="DetailsTitle">{$lng.txt_header}</FONT>
{else}
{$lng.txt_header}
{/if}



Q. how do i write this IF,ELSE statement but in php with the below example.

$product_line .= "\n".$product['product'].' #'.$product['productid']."<BR></BR>";
Reply With Quote