121 přidán editace zaka, assets formular zak

This commit is contained in:
kankys
2024-10-09 17:45:43 +02:00
parent 262afa0716
commit 803bc5ca63
4 changed files with 66 additions and 14 deletions

View File

@ -8,6 +8,9 @@ $connection = connectionDB();
if (isset($_GET["id"]) and is_numeric($_GET["id"])) {
$students = getStudent($connection, $_GET["id"]);
} else {
// pokud není nastavené id nastav ho na null
$one_student = null;
}
@ -38,6 +41,9 @@ if (isset($_GET["id"]) and is_numeric($_GET["id"])) {
<p>Kolej: <?= htmlspecialchars($students["college"])?></p>
<?php endif ?>
</section>
<section class="buttons">
<a href="editace-zaka.php?id=<?= $students['id']?>">Editovat</a>
</section>
</main>
<?php require "assets/footer.php" ?>