Hi,
I would like to count the SUM of this output:
SELECT * FROM $shop WHERE client='$REMOTE_ADDR'
while($row=...)
{
$total=number_format($row[quantity]*$row[price], 2, '.', '\'');
echo"$total"; // SUM OF THIS
}
If there are many rows, and I would like to know the end price off all articels, how do i do this? in the DB i only have the [price/unit] and nothing else, not the subtotal.
The subtotal is calculated with: $total=number_format($row[quantity]*$row[price], 2, '.', '\'');