commit 326e779d0683448b9ea93de5eab42a85b90b07b4 Author: janmaroto Date: Sat Nov 27 12:01:50 2021 +0100 Primer Commit diff --git a/data_submit.php b/data_submit.php new file mode 100644 index 0000000..50cd75c --- /dev/null +++ b/data_submit.php @@ -0,0 +1,45 @@ +query($sql); + + if ($inputOption === "select") { + $row = $rs->fetch_array(); + $output = "Result Set: " . $row[0] . ", " . $row[1] . ", " . $row[2] . ", " . $row[3] . ", " . $row[4]; + } else if ($rs === TRUE) { + $output = "Result Set: Successfull transaction"; + } else { + $output = "Result Set: Transaction error: " . $sql . "
" . $con->error; + }; + } + + header("Location: ./index.php?message=$output"); + // echo $output; +?> \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..e69de29 diff --git a/index.php b/index.php new file mode 100644 index 0000000..6c89e47 --- /dev/null +++ b/index.php @@ -0,0 +1,32 @@ + + + + +

Fill the input fields to interact

+ +
+
+
+
+
+
+

+

+


+ +
+ + + + + \ No newline at end of file