17 lines
412 B
PHP
17 lines
412 B
PHP
|
<?php
|
||
|
|
||
|
require '../config/function.php';
|
||
|
|
||
|
$archivedStudents = getArchivedStudentsWithActiveClasses();
|
||
|
$studentDeleteRes = deleteArchivedStudentsWithActiveClasses($archivedStudents);
|
||
|
if($studentDeleteRes)
|
||
|
{
|
||
|
redirect('archive.php','Schüler:innen wurden erfolgreich entfernt','success');
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
redirect('archive.php','Ein Fehler ist aufgetreten','danger');
|
||
|
}
|
||
|
|
||
|
|
||
|
?>
|