From 16939b4344b67ac8146015231af4d2fe691e90ce Mon Sep 17 00:00:00 2001 From: Mateja Date: Thu, 1 Oct 2020 14:50:02 +0200 Subject: tiding up... --- test/edit.inc.php | 21 ++++++++++++---- test/index.php | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ test/test.inc.php | 4 --- test/test.php | 34 ------------------------- test/test2.php | 56 ----------------------------------------- 5 files changed, 91 insertions(+), 99 deletions(-) create mode 100644 test/index.php delete mode 100644 test/test.inc.php delete mode 100644 test/test.php delete mode 100644 test/test2.php diff --git a/test/edit.inc.php b/test/edit.inc.php index cb0c23f..3309a7b 100644 --- a/test/edit.inc.php +++ b/test/edit.inc.php @@ -1,7 +1,18 @@ "; + } else { + echo "Email is valid: " . $email . "
"; + } +} + +function clear_input($data) { + $data = trim($data); + $data = stripslashes($data); + $data = htmlspecialchars($data); + return $data; +} diff --git a/test/index.php b/test/index.php new file mode 100644 index 0000000..b0cb731 --- /dev/null +++ b/test/index.php @@ -0,0 +1,75 @@ +You gay!
"; +} +?> + + + + +Test table + + + + +
+ + +
+ + +
+ + +
+ +
+\n"; + echo "IDNameActions\n"; + foreach ($conn->query("SELECT * FROM tbl1") as $row) { + echo "" . $row['id'] . ""; + echo "" . $row['name'] . ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo "\n"; + } + echo "\n"; +} +catch (PDOException $e) { + echo $e->getMessage(); +} +?> + + diff --git a/test/test.inc.php b/test/test.inc.php deleted file mode 100644 index 853270c..0000000 --- a/test/test.inc.php +++ /dev/null @@ -1,4 +0,0 @@ - - - - - - - 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 deleted file mode 100644 index 8f2c697..0000000 --- a/test/test2.php +++ /dev/null @@ -1,56 +0,0 @@ - - - - -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