I have been with this for several weeks, and I could not find a “simple / quick” way for such a mundane implementation. Im limited knowing only php and html (for now), but I finally got what I wanted using some javascript without knowing it in depth, and I ended up with ugly several hundred code. But now, when it became easier for me, I was wondering if there is an easy way to do this simple thing and improve my previous work:
I have a database with table 1 with n elements and table 2, I want to display the price from Table 1, then I could enter the quantity in the user part and automatically show the line Subtotal when all the elements are full, then show Grandtotal when the user enters data. Then read all the rows and insert the new information (quantity and subtotal) into the DB2 table.

Something like this, but with n Rows
(yellow = database data, blue = user inputs, green = dynamic fields)
Then get all these n rows in the database Any lights for an easy way to do this? (Even if this includes jQuery or JS, I’m not afraid of them anymore) (I won’t post my code because it is crap, basically I ended up listening to all possible rows and then pasting them into table2 if the subtotal was greater than 0 ) Thanks in advance!
source share