From fe66b295341aefc618f42fe15f569e7dc5dd15e3 Mon Sep 17 00:00:00 2001 From: Luka Hietala Date: Wed, 29 Oct 2025 12:34:01 +0200 Subject: [PATCH] alku harjoittelupaikat sivulle --- hae_harjoitttelupaikat.php | 20 ++++++++++++++++++++ harjoittelupaikat.php | 25 +++++++++++++++++++++++++ header.php | 4 +++- 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 hae_harjoitttelupaikat.php create mode 100644 harjoittelupaikat.php diff --git a/hae_harjoitttelupaikat.php b/hae_harjoitttelupaikat.php new file mode 100644 index 0000000..213ae26 --- /dev/null +++ b/hae_harjoitttelupaikat.php @@ -0,0 +1,20 @@ +query($sql); + +if ($result->num_rows>0) { + while($row = $result->fetch_assoc()) { + echo ""; + echo "" . $row["nimi"] . ""; + echo "" . $row["ohjaaja"] . ""; + echo "" . $row["yhteystiedot"] . ""; + echo ""; + } +} else { + echo "Harjoittelupaikkoja ei löytynyt"; +} + +$conn->close(); +?> diff --git a/harjoittelupaikat.php b/harjoittelupaikat.php new file mode 100644 index 0000000..bc5ff2e --- /dev/null +++ b/harjoittelupaikat.php @@ -0,0 +1,25 @@ + + + + + Harjoittelupaikat + + + + +
+
+
+ + + + + + + +
NimiOhjaajaYhteystiedot
+
+
+
+ + \ No newline at end of file diff --git a/header.php b/header.php index 18e6e32..d9cef8c 100644 --- a/header.php +++ b/header.php @@ -5,7 +5,9 @@ $conn->close(); ?>