Let’s say I have this table in my database:

Each time is a UNIX timestamp that range from December 6 to December 14(today). Some rows have the same day but not the same time (ie: Dec 14 8:39PM, Dec 14 10:21 PM) and such.
However, I’m trying to make a mysql query that will add up all gained points for each day.
I currently have a while list that goes down the list sorted by uid because UID is the id of the user.
This is my currently while query:
$get_statuses = mysql_query("SELECT * FROM `history`
WHERE `uid` = '$logged[id]'
ORDER BY `id` DESC LIMIT 50");
Assuming I use this $fullDate = date("F j, Y", $status['4']); for each current loop beacuse I did this while ($status = mysql_fetch_array($get_statuses)) {...}, how do I do this?
Maybe a SELECT(SUM)?
Use this query.
You can add More where condition here. Like