It is a very simple project.
I have a table StudentDailyHours which has three columns student name, data and hours on particular day.
Second table StudentTotalHours has two colums student name and total hours.
I have a form on which the user will have three inputs Student name, date and total hours. When the user submits the form with those three values, an entry has to be made to the table StudentDailyHours with the name, date and hours on that day and then for that student in StudentTotalHours table, it has to select the total hours value and add the hours.
Eg. In StudentTotalHours , name Gowri has total hours 40. Now I submit in the form with name as Gowri, date as 4/18/2016 and hours as 5.
Then, first one row has to be added in StudentDailyHours with name as Gowri, date as 4/18/2016 and hours as 5. Then in the StudentTotalHours table, for the entry Gowri the total hours 40 has to added with 5 and saved as 45.