Hey, I want to add and print some fields from my table, but only from the newest entry. This is the code I have now:
$query = "SELECT SUM(variable1)+SUM(variable2)+SUM(variable3)+SUM(variable4)+SUM(variable5) from week1 ORDER BY id DESC LIMIT 1";
I thought that the "ORDER BY id" would just add 1 row, but for some reason it adds everything in the table... any ideas?
Thanks 🙂