I'm creating a timeline where there can be more than one user update per day.
I need my return sql already compare dates and I can separate
$sql = "SELECT * FROM tb_timeline JOIN responsaveis ON id_responsavel = feito_timeline WHERE para_timeline = '".$_SESSION['id_responsavel_matricula']."' ORDER BY data_timeline ASC ";
These updates record a LOG in a table with what was changed and the change date and time, I would like it to compare the changes made on the same day and put the indicated class so that the timeline appears only in the left or right only.
In the image I put for each log appeared one on one side and another on another, but I would like to compare the dates EX: 2018-08-07 appeared on one side and 2018-08-08 appears from another and so on
To appear on the left side, does not use class, to appear on the right side I place the class inverted