I am working on a web app and need to total a field an array of records.
To further explain please look at the included image:

This image depicts my output from using the following query:
SELECT * FROM logbook WHERE dayNight = 'D'
Now what I need to do is total all the values in the hours field of all these records.
Once this is done, the output should be something of the following (just as an example):
6:05:21
Representing HH:MM:SS.
But I would like to represent it in just hours and mins, in a decimal value... So if I had 6 hours and 40 mins and 2 seconds, it would say jsut 6:40. This would be the following structure HH:MM.
So I don't know how to do any of this - but thank you for all the help!
dayNightfield contains the letter D. How is adding the letter D going to result in a time? You must mean some other column. Please clarify that and tag your question with what RDBMS we're supposed to help you with.hourscolumn, please share what data type this column is. It looks like a string, while strings aren't easily added. You still need to tag the question with what RDBMS you're using. The answer will depend on that.hoursfield. And I am using mySQL with php.