Get Started

Where Syntax

Query

Transaction

Advanced

PDO object

Debug

Information

version: 1.1.3

sum

Get the total value for the column

sum($table, $column, $where)
sum($table, $join, $column, $where)
Return: [number] The total number of the column.
$total = $database->sum("account", "money");

echo "We have $" . $total;