Well see what i am trying to do is actually UPDATE different fields with the same value, not update the same field with different values.
But if a fieldname can not be a number, what if i did this...
UPDATE $table SET testfield$Variable = 1
so testfield would be the field name and it would have a number after it based on whatever the value of $Variable was.
such as testfield1, testfield2, and so on...