10 lines
191 B
PHP
10 lines
191 B
PHP
<?php
|
|
|
|
if ($this->is_id()) {
|
|
$delete_query = "DELETE FROM training WHERE tr_id = " . $this->get_id() . ";";
|
|
$sql->execute_query($delete_query);
|
|
header("Location: /admin/trainings");
|
|
}
|
|
|
|
|
|
?>
|