Help, there is a table in the database called tasks , you need to write a query so that only those records are displayed in which the date from the termin column was until today.
$today = getdate(); // получаем сегодняшнюю дату $result = mysqli_query($connect, "SELECT * FROM tasks WHERE termin<='$today'"); // датой больше сегодняшной In the database, the termin column is of type date