From d3150166f8f288d96f4b7ed32bc7edbc5a7771c4 Mon Sep 17 00:00:00 2001 From: Luka Hietala Date: Wed, 29 Oct 2025 10:48:29 +0200 Subject: [PATCH] alku muokkaukselle --- index.php | 1 - luku.php | 6 ++++++ muokkaa.php | 17 +++++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 muokkaa.php diff --git a/index.php b/index.php index a6b2008..465eea2 100755 --- a/index.php +++ b/index.php @@ -28,7 +28,6 @@ Status Ruokaraha Muuta - Muokkaus num_rows>0){ " . ""; + echo "" . // Muokkaa nappi + "
+ + +
" + . ""; echo ""; } } diff --git a/muokkaa.php b/muokkaa.php new file mode 100644 index 0000000..1d4fc9d --- /dev/null +++ b/muokkaa.php @@ -0,0 +1,17 @@ +query($sql) === TRUE) { + echo "Muutettu onnistuneesti"; +} else { + echo "Virhe muokkaessa arvoa: " . $conn->error; +} +$conn->close(); + +$newURL = "index.php"; +header('Location: '.$newURL); +die(); +?> -- 2.47.3