Esto requiere funciones agregadas. Use SUM()
y GROUP BY
en su consulta:
$newDate = "SELECT date_added,
SUM(menu_price )
FROM main
GROUP BY date_added
ORDER BY date_added DESC";
Esto requiere funciones agregadas. Use SUM()
y GROUP BY
en su consulta:
$newDate = "SELECT date_added,
SUM(menu_price )
FROM main
GROUP BY date_added
ORDER BY date_added DESC";