From 00fda2f0dfdaa1129949f0fa116cfaeff23ab486 Mon Sep 17 00:00:00 2001 From: Mateja Date: Mon, 28 Sep 2020 19:14:53 +0200 Subject: first commit --- index.php | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 index.php (limited to 'index.php') diff --git a/index.php b/index.php new file mode 100644 index 0000000..47b4069 --- /dev/null +++ b/index.php @@ -0,0 +1,61 @@ + + + + + + + + Yota Callplan + + +
YOTA
+ +
+setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); + + echo '
'; + echo "\n"; + echo ""; + echo ""; + echo ""; + echo ""; + echo "\n"; + + foreach($db->query("SELECT * FROM $table where approved=true") as $row) { + echo ""; + echo ""; + echo ""; + echo ""; + echo "\n"; + } + + echo "
ImePrezimeGodine
" . $row['name'] . "" . $row['surname'] . "" . $row['age'] . "
\n
\n"; + } catch (PDOException $e) { + echo "

Error!: " . $e->getMessage() . "

"; + die(); + } +?> +
+ + -- cgit v1.2.3