That's pretty much what you do...just loop through, updating a row at a time.
You could also set up the loop to create an IN statement
"UPDATE product_list SET product_sold = product_sold+1 WHERE SomeIdentifier IN ('11','22','33')";
which would update the rows where SomeIdentifier was 11 or 22 or 33.