Hi,

Do this

$varname = "";
$varname .= "COLOR";

or

unset($varname);
$varname .= "COLOR";

Either way you initialize the value before you set the value.

Sincerely,
Mike
-- 
Mike Brandonisio                 *    IT Planning & Support
Tech One Illustration            *    Database Applications
tel (630) 759-9283               *    e-Commerce
[EMAIL PROTECTED]  *    www.techoneillustration.com


On Jan 25, 2007, at 12:16 PM, Marian Briones 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!
>
>
>
> Community email addresses:
>   Post message: [email protected]
>   Subscribe:    [EMAIL PROTECTED]
>   Unsubscribe:  [EMAIL PROTECTED]
>   List owner:   [EMAIL PROTECTED]
>
> Shortcut URL to this page:
>   http://groups.yahoo.com/group/php-list
> Yahoo! Groups Links
>
>
>

Reply via email to