Waarom doet u de berekening niet in de database?
SELECT SUM(price * sold) as total
FROM `inv`;
BEWERKEN:
SELECT SUM((replace(price, '$', '') + 0) * sold) as total
FROM `inv`;
Waarom doet u de berekening niet in de database?
SELECT SUM(price * sold) as total
FROM `inv`;
BEWERKEN:
SELECT SUM((replace(price, '$', '') + 0) * sold) as total
FROM `inv`;