In my head it seems simple but i can't find anything anywhere that helps me out. Im looking for a code that will sit on the homepage of the website that does the following:
1. Calcualte the SUM of all of one field in a database.
2. Inserts this value into a text elemenet on my homepage.
Can anyone help?