From 47e69caac7992c5e4e4b76fd453e0b304cec32b1 Mon Sep 17 00:00:00 2001 From: 3p01 Date: Thu, 2 Oct 2025 08:45:25 +0200 Subject: [PATCH] 02.10 --- .../index.php | 40 +++++++++++ .../style.css | 68 +++++++++++++++++++ 2 files changed, 108 insertions(+) create mode 100644 Tematy/T60 - początek pracy z bazą danych/index.php create mode 100644 Tematy/T60 - początek pracy z bazą danych/style.css diff --git a/Tematy/T60 - początek pracy z bazą danych/index.php b/Tematy/T60 - początek pracy z bazą danych/index.php new file mode 100644 index 0000000..25f4e2d --- /dev/null +++ b/Tematy/T60 - początek pracy z bazą danych/index.php @@ -0,0 +1,40 @@ + + + + + + + T60 - początek pracy z bazą danych + + + +
+

Zadanie T60

+

Autor: Jakub Grzegorczyk

+
+
+ 0) { + while ($row = mysqli_fetch_assoc($result)) { + echo "

"; + echo "Imię: " . htmlspecialchars($row['imie']) . "
"; + echo "Nazwisko: " . htmlspecialchars($row['nazwisko']) . "
"; + echo "Stanowisko: " . htmlspecialchars($row['stanowisko']) . "
"; + echo "Sekcja: " . htmlspecialchars($row['sekcja']); + echo "

"; + } + } else { + echo "

Brak wyników.

"; + } + mysqli_close($db); + ?> +
+ + + + diff --git a/Tematy/T60 - początek pracy z bazą danych/style.css b/Tematy/T60 - początek pracy z bazą danych/style.css new file mode 100644 index 0000000..1de7812 --- /dev/null +++ b/Tematy/T60 - początek pracy z bazą danych/style.css @@ -0,0 +1,68 @@ +* { + box-sizing: border-box; +} +body { + font-family: Verdana, serif; + background: #ffffff; + margin: 15px; + font-size: 0.9em; +} +header { + border: 2px solid black; + border-radius: 1em; + padding: 10px 20px; + box-shadow: rgba(0, 0, 0, 0.2) 3px 3px 5px; + background: #f0f0f0; +} + +input { + margin-top: 5px; + margin-bottom: 5px; + width: 30%; + border: black 2px solid; + border-radius: 0.5em; + height: 2em; +} + +button { + padding: 5px; + width: 30%; + border: black 2px solid; + border-radius: 0.5em; + font-weight: bold; + margin-top: 10px; +} +pre { + font-family: Verdana, serif; +} + +.box { + border: 2px solid black; + padding: 15px 20px; + border-radius: 1em; + margin: 15px 0 10px 0; + box-shadow: rgba(0, 0, 0, 0.2) 3px 3px 5px; +} + +.box h3 { + cursor: pointer; +} +td { + width: 50px; + height: 50px; + margin: 0; + padding: 0; +} +tr { + padding: 0; +} + +.y { + background: yellow; +} + +.b { + background:blue; +} + +