<?php
$query2 = QModel::query("SELECT * FROM transaction");
while($get2 = QModel::g($query2)) {
$totalprice = $get2['price'];
echo array_sum($totalprice);
}
?>
I get php error:
Message: array_sum() expects parameter 1 to be array, string given
please help thanks