I have an application connected to a database. Now I want to add the values from several columns of several datasets together
I tried with the SUM()-Function but i don't know how to spend the values so that they are visible in the application.
I have no idea how to build the code smart.
it should be like this:
$sql = "SELECT SUM(column1)+(column2)";
echo $Sum of all columns and datasets.