ok... getting another error:
"UPDATE inventory SET invSTOCK = invSTOCK + ".$value." WHERE invCODE=".$key." LIMIT 1"
UPDATE inventory SET invSTOCK = invSTOCK + 10 WHERE invCODE=38207A LIMIT 1
Unknown column '38207A' in 'where clause'
...but the column name is invCODE...