--- Marian Briones <[EMAIL PROTECTED]> wrote:

> I'm trying to show a catalog and there are colors available for each
> product.  The query queries the color choice out of a table by the
> item's ID which is also in that table.  It then prints a line to show
> that.
> 
> The problem is, the next item, those variables aren't being cleared
> out so I see the last items color choices and then the current item's
> color choices appended to that list. 
> 
> I don't know how to handle this.  How do I clear a variable?
> 
> It's a concatonate variable $varname .= "COLOR";
> 
> HELP!  I'm never getting paid for this job!


In general, clearing a variable in PHP is done with the unset() function.

If this is a GET variable in the URL, other approaches will be necessary.

James Keeline

Reply via email to