diff --git a/www2databaze/assets/database.php b/www2databaze/assets/database.php index 5dad3cf..6d249e5 100644 --- a/www2databaze/assets/database.php +++ b/www2databaze/assets/database.php @@ -1,12 +1,24 @@ \ No newline at end of file diff --git a/www2databaze/assets/footer.php b/www2databaze/assets/footer.php new file mode 100644 index 0000000..445bed8 --- /dev/null +++ b/www2databaze/assets/footer.php @@ -0,0 +1,3 @@ + diff --git a/www2databaze/jeden-zak.php b/www2databaze/jeden-zak.php index 680b36a..bf99ee5 100644 --- a/www2databaze/jeden-zak.php +++ b/www2databaze/jeden-zak.php @@ -1,7 +1,10 @@
- +
- +
- +
- +
- +
diff --git a/www2databaze/ucimese/funkce.php b/www2databaze/ucimese/funkce.php new file mode 100644 index 0000000..48395a0 --- /dev/null +++ b/www2databaze/ucimese/funkce.php @@ -0,0 +1,21 @@ +"; + } + + +// Použití +echo studentDescription("Harry", "Potter", 15); +echo studentDescription("Ron", "Weasley", 14); +$student = studentDescription("Hermiona", "Grangerová", 15); +echo $student; \ No newline at end of file diff --git a/www2databaze/zaci.php b/www2databaze/zaci.php index 5771373..9058e93 100644 --- a/www2databaze/zaci.php +++ b/www2databaze/zaci.php @@ -4,6 +4,8 @@ require "assets/database.php"; $sql = "SELECT * FROM student"; +$connection = connectionDB(); + $result = mysqli_query($connection, $sql); if ($result === false) {