From 00fda2f0dfdaa1129949f0fa116cfaeff23ab486 Mon Sep 17 00:00:00 2001 From: Mateja Date: Mon, 28 Sep 2020 19:14:53 +0200 Subject: first commit --- test/edit.inc.php | 7 +++++++ test/test.inc.php | 4 ++++ test/test.php | 34 +++++++++++++++++++++++++++++++++ test/test2.php | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 101 insertions(+) create mode 100644 test/edit.inc.php create mode 100644 test/test.inc.php create mode 100644 test/test.php create mode 100644 test/test2.php (limited to 'test') diff --git a/test/edit.inc.php b/test/edit.inc.php new file mode 100644 index 0000000..cb0c23f --- /dev/null +++ b/test/edit.inc.php @@ -0,0 +1,7 @@ + + + + + + + Test + + +
+"; + } else { + echo "You oki: " . $email . "
"; + } +} +function clear_input($data) { + $data = trim($data); + $data = stripslashes($data); + $data = htmlspecialchars($data); + return $data; +} +include 'test.inc.php'; +?> +
+ + +
+
+ + diff --git a/test/test2.php b/test/test2.php new file mode 100644 index 0000000..8f2c697 --- /dev/null +++ b/test/test2.php @@ -0,0 +1,56 @@ + + + + +Test table + + + + + + +\n"; + echo "NameActions\n"; + foreach ($conn->query("SELECT * FROM tbl1") as $row) { + echo "" . $row['name'] . ""; + echo ""; + echo ""; + echo ""; + echo "\n"; + } + echo "\n"; +} +catch (PDOException $e) { + echo $e->getMessage(); +} +?> + + -- cgit v1.2.3