From 41a7fc9ce69da79e0bee38e653d3ed7aad804f29 Mon Sep 17 00:00:00 2001 From: Luka Hietala Date: Wed, 29 Oct 2025 13:20:53 +0200 Subject: [PATCH] =?UTF-8?q?harjoittelupaikkojen=20lis=C3=A4=C3=A4minen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...elupaikat.php => hae_harjoittelupaikat.php | 0 harjoittelupaikat.php | 6 ++- lisaa_harjoittelupaikka.php | 18 +++++++++ uusharjoittelupaikka.php | 38 +++++++++++++++++++ 4 files changed, 61 insertions(+), 1 deletion(-) rename hae_harjoitttelupaikat.php => hae_harjoittelupaikat.php (100%) create mode 100644 lisaa_harjoittelupaikka.php create mode 100644 uusharjoittelupaikka.php diff --git a/hae_harjoitttelupaikat.php b/hae_harjoittelupaikat.php similarity index 100% rename from hae_harjoitttelupaikat.php rename to hae_harjoittelupaikat.php diff --git a/harjoittelupaikat.php b/harjoittelupaikat.php index bc5ff2e..2e241f2 100644 --- a/harjoittelupaikat.php +++ b/harjoittelupaikat.php @@ -7,6 +7,10 @@ +

+ Harjoittelupaikat +

+ Lisää harjoittelupaikka
@@ -16,7 +20,7 @@ Ohjaaja Yhteystiedot - +
diff --git a/lisaa_harjoittelupaikka.php b/lisaa_harjoittelupaikka.php new file mode 100644 index 0000000..dfd577b --- /dev/null +++ b/lisaa_harjoittelupaikka.php @@ -0,0 +1,18 @@ +query($sql) === TRUE) { + echo "New record created successfully"; + } else { + echo "Error: " . $sql . "
" . $conn->error; + } + $conn->close(); +} +// Redirect +$newURL = "harjoittelupaikat.php"; +header('Location: '.$newURL); +die(); +?> diff --git a/uusharjoittelupaikka.php b/uusharjoittelupaikka.php new file mode 100644 index 0000000..d72f364 --- /dev/null +++ b/uusharjoittelupaikka.php @@ -0,0 +1,38 @@ + + + + + + Lisää Harjoittelupaikka + + + + +
+
+

+ Lisää harjoittelupaikka +

+
+
+ + Harjoittelupaikan tiedot + + + + + + + +
+ +
+
+
+ + + -- 2.47.3