This may be, so to speak, an alternative method of solving my previous problem . Now from the data table pull query:
SELECT day(FROM_UNIXTIME(`t_date`)) as day, COUNT(*) as summ_open FROM table WHERE `t_status`=0 AND month(FROM_UNIXTIME(`t_date`)) = month(now()) GROUP BY day At the exit we get the amount for each day. Is it possible to make a request somehow so that he considers the sum of the day and adds up with the sum of the previous day? In order not to resort to the implementation of the means of php, and do everything on mysql?