bugfixes#1

This commit is contained in:
Ricsi
2016-11-23 09:17:27 +00:00
parent c4caabe6d4
commit d678ee8d70
5 changed files with 27 additions and 0 deletions

View File

@@ -1,6 +1,9 @@
<?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");