I want to run update query using for loop and while loop. Because I want to update quantity of product in product table after success of order according to product id and total