Dies erfordert Aggregatfunktionen. Verwenden Sie SUM()
und GROUP BY
in Ihrer Abfrage:
$newDate = "SELECT date_added,
SUM(menu_price )
FROM main
GROUP BY date_added
ORDER BY date_added DESC";
Dies erfordert Aggregatfunktionen. Verwenden Sie SUM()
und GROUP BY
in Ihrer Abfrage:
$newDate = "SELECT date_added,
SUM(menu_price )
FROM main
GROUP BY date_added
ORDER BY date_added DESC";