after the foreach, you need to tack on
WHERE `column` = 'value';
so your whole query would be
UPDATE quality_info SET quality_id = NULL (form values) WHERE `column` = 'value';
for example, say your table has an ID column. you would tell it to update where id = the id of the record you want to update. $row['id'] or something of the sort. i would put it in hidden field in the form, so that when they submit the form, the id of the record is in the POST array
i hope that helps, because you didn't actually state your question.