0
Well, I have one foreach
and would like to run some script right after it comes to an end. But how do I do this check?
foreach ($array as $id_video) {
$resultado = mysqli_query($conexao, "INSERT INTO exercicios (id_treino_exercicio, id_aluno_exercicio, dia_exercicio) VALUES ('$id_video', '$id_aluno_exercicio', '$dia_exercicio')");
}
Just put some code after the block
foreach
, No? If he "passed" theforeach
, you don’t have to check, because you know he’s "done"...– Luiz Felipe