Last Updated: February 25, 2016
·
1.167K
· angeltduran

sum with idiorm

$sum = ORM::for_table('records')->where('date', '2013-01-01')->sum('price');

echo "VENTA TOTAL DE HOY ".$sum."";