13 lines
382 B
PHP
13 lines
382 B
PHP
<?php
|
|
|
|
if ($this->is_id()) {
|
|
//először ki kell törölni a coachokat
|
|
$delete_coach_query = "DELETE FROM training_coach WHERE trc_training_tr_id = " . $this->get_id() . ";";
|
|
$sql->execute_query($delete_coach_query);
|
|
$delete_query = "DELETE FROM training WHERE tr_id = " . $this->get_id() . ";";
|
|
$sql->execute_query($delete_query);
|
|
header("Location: /admin/trainings");
|
|
}
|
|
|
|
|
|
?>
|