Dit vereist geaggregeerde functies. Gebruik SUM()
en GROUP BY
in uw vraag:
$newDate = "SELECT date_added,
SUM(menu_price )
FROM main
GROUP BY date_added
ORDER BY date_added DESC";
Dit vereist geaggregeerde functies. Gebruik SUM()
en GROUP BY
in uw vraag:
$newDate = "SELECT date_added,
SUM(menu_price )
FROM main
GROUP BY date_added
ORDER BY date_added DESC";