Код: Выделить всё
id start end group_identify_id
1 2019-07-18 07:15:00 2019-07-18 08:15:00 5700044
2 2019-07-16 07:15:00 2019-07-16 08:15:00 5700044
3 2019-07-17 07:15:00 2019-07-17 08:15:00 5700044
4 2019-07-15 07:15:00 2019-07-15 08:15:00 5700045
5 2019-07-14 07:15:00 2019-07-14 08:15:00 5700045
результат:
Код: Выделить всё
1 2019-07-18 07:15:00 2019-07-18 08:15:00 5700044
2 2019-07-16 07:15:00 2019-07-16 08:15:00 5700044
3 2019-07-17 07:15:00 2019-07-17 08:15:00 5700044
Код: Выделить всё
$results = $this->db->where('where('DATE(start) >=',$currentDate)->get('schedule_diary')->result();
Подробнее здесь: https://stackoverflow.com/questions/570 ... ows-in-sql
Мобильная версия