From a945feb02f6d64df2219ea1044251a7fe2ea98fc Mon Sep 17 00:00:00 2001 From: Mateja Date: Sat, 3 Apr 2021 00:37:03 +0200 Subject: Initial commit. --- querydb.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 querydb.php (limited to 'querydb.php') diff --git a/querydb.php b/querydb.php new file mode 100644 index 0000000..dade409 --- /dev/null +++ b/querydb.php @@ -0,0 +1,17 @@ +TODO
    "; + foreach($db->query("SELECT content FROM $table") as $row) { + echo "
  1. " . $row['content'] . "
  2. "; + } + echo "
"; +} catch (PDOException $e) { + print "Error!: " . $e->getMessage() . "
"; + die(); +} -- cgit v1.2.3