Greetings again, I explain my case, I have in a table available courses that are going or are currently being taught each course with their specific data between them start date and end date, what I'm thinking of doing is that upon arrival the final date of the course, this is automatically deleted from my table available courses. The only thing that occurs to me is the conditional that could be like this:
if($row['fecha_final']==$fecha){
$query = "DELETE FROM cursos_disponibles WHERE id = '$id'";
$sql = $mysqli->query($query);
}
What I do not get is the way to get rid of me alone without having to give a button or something like that, that the course will be automatically deleted when that final date arrives. Thanks in advance who helps me.