I'm looking into doing some maths to work out the total amount of 'credits' all users in a database have.
I have a database with a table called users with userid, username, email and credit columns. I was wondering if there is a way of diplaying all the results in a table like userid, username, email and credits as table colums and then at the bottom have the total of all user credits:
UserID | Username | Email Address | Credits
-------+----------+---------------+--------
1 | example | e@mail1.com | 4
2 | another | e@mail2.com | 3
3 | lastone | e@mail3.com | 1
-------+----------+---------------+--------
| | Total Credits | 8
-------+----------+---------------+--------
I was wondering if this was possible and any other math equations you can do with mySQL databases and PHP
Oliver