vytvoření .htaccess + úklid
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
global $connection;
|
||||
require "database.php";
|
||||
require "assets/database.php";
|
||||
|
||||
if (isset($_GET["id"]) and is_numeric($_GET["id"])) {
|
||||
$sql = "SELECT * FROM student WHERE id = ". $_GET["id"];
|
||||
@ -25,11 +25,12 @@ if (isset($_GET["id"]) and is_numeric($_GET["id"])) {
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>Informace o žákovi</h1>
|
||||
</header>
|
||||
<?php require "assets/header.php" ?>
|
||||
|
||||
|
||||
|
||||
<main>
|
||||
<section class="main-heading"><h1>Informace o žákovi</h1></section>
|
||||
<section>
|
||||
<?php if ($students === null): ?>
|
||||
<p>Žák nenalezen</p>
|
||||
@ -37,13 +38,11 @@ if (isset($_GET["id"]) and is_numeric($_GET["id"])) {
|
||||
<h2><?php echo $students["first_name"]. " " .$students["second_name"] ?></h2>
|
||||
<p>Věk: <?php echo $students["age"] ?></p>
|
||||
<p>Dodatečné informace: <?= $students["life"] ?></p>
|
||||
<p>Kolej: <?= $students["collage"] ?></p>
|
||||
<p>Kolej: <?= $students["college"] ?></p>
|
||||
<?php endif ?>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
|
||||
</footer>
|
||||
<?php require "assets/footer.php" ?>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user