Method: db::sum
Gets the sum of values in a column of a table
Info
Syntax
db::sum($table, $column, $where=null)
Parameters
- $table (string) The table name
- $column (string) The name of the column
- $where (mixed) Either a key/value array as AND connected where clause or a simple MySQL where clause string