This is the php script. It will useful for to calculate sum of hours and minutes in mysql table using php code.