Warning: array_sum() [function.array-sum]: The argument should be an array in pdf.php on line 112
i am getting this error and i dont see what the problem is. it calls values and adds them
$result = mysql_query("SELECT * FROM sold_produce WHERE invoice_id='$invoice_id' ");
while($myrow = mysql_fetch_assoc($result))
{
$total2[] = $myrow['total'];
}
$content .= array_sum($total2);