I have really appreciated your help.
The way you did the unique id is really clever. Well done!!:)
There is one problem however, if the user by accident clicks the refresh button in the browser, the table will be cleared i.e. the table will disappear from the screen. Suppose the user had already typed some number there, he/she would loose everything. Is there a way to avoid that and maintain the state??
1 - How can I loop through both the first, second, etc rows and first, second, etc... columns? Suppose the columns represented the days of the week and the rows the name of the shop and the value entered the daily income. What I want to be able to do is to add all the values in the first column (Monday) to have a total for Monday. Then add the values of only second column to have a total for Tuesday.
Similarly, I need to be able to add the values in the first row for a particular shop then the values of the second row (Monday + Tuesday + Wednesday + ....) for the other shop and so on.
Finally, I need to be able to produce an average of sales based on days of week (each column separately) and per shop (each row separately).
I would really appreciate if someone could help with that.