View Single Post
  #18  
Old 10-28-2003, 05:40 PM
 
pipercub pipercub is offline
 

Advanced Member
  
Join Date: Oct 2002
Posts: 82
 

Default

One more before I go to bed...

Code:
{* $Id: products_colors.tpl,v 1.0 2003/10/26 13:07:50 ADPBoss Exp $ *}б═б═ {if $products[cat_num].forsale eq "N" bgcolor="#00CCCC"} {elseif $products[cat_num].forsale eq "N" and $products[cat_num].avail eq "0" bgcolor="#CCCCCC"} {elseif $products[cat_num].forsale eq "N" and $products[cat_num].avail eq "1" bgcolor="#FFFF99"} {/if}

I used the 'elseif' to separate the options. Also, there was an extra } in there.

Believe it or not, this is exactly how I teach myself. I try everything using slightly different code until I find the solution. It may take me hours, but I eventually solve the problem as well as learning by trail and error (mostly error).

When all else fails, check other templates to see if you can find similar code and use it as a reference.

Good luck, and good night.

Piper
Reply With Quote