I’ve come up with an SQL sum query:
$query = "SELECT SUM(calories) FROM tracklog AS calories WHERE userid = $_SESSION[userid]";
No errors are shown, however how do I get this value to be displayed using HTML?
I want it to be displayed after ‘Total number of calories lost to date:’