I'm going to guess that this isn't EXACTLY the code that is causing the problem you describe.
I would guess, in fact that the problem is actually found in some more complicated code that you have written, and that you have posted this example after cleaning up the actual code a bit.
My guess is that in that code you have an if statement that says something like
if($team=$teamname)
or some other similar conditional
when what you meant is
if ($team == $teamname)
In other words, in your code instead of CHECKING ($team=='FUZZIEWUZZIES")
You are assigning ($team='FUZZIEWUZZIES')
Anyway, that's my guess.
Another guess would be using a
.= (concat)
instead of an
= (assignment)
at some point in your code before the variable is used to update the database.
You may ask yourself why I'm guessing this? It's because I do this kind of thing all the time.