summaryrefslogtreecommitdiff
path: root/scripts/packages.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-11 16:54:13 +0200
committerErich Eckner <git@eckner.net>2018-04-11 16:54:13 +0200
commit6d93913ca2893a7fc5499c0cb5d6e70831e7af50 (patch)
tree2e3b2e0a9779f75200648857852a9bc8171750ef /scripts/packages.php
downloadarchweb32-6d93913ca2893a7fc5499c0cb5d6e70831e7af50.tar.xz
status quo
Diffstat (limited to 'scripts/packages.php')
-rw-r--r--scripts/packages.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/packages.php b/scripts/packages.php
new file mode 100644
index 0000000..b7c0196
--- /dev/null
+++ b/scripts/packages.php
@@ -0,0 +1,20 @@
+<?php
+
+ $mysql = new mysqli("localhost", "webserver", "empty", "buildmaster");
+ if ($mysql->connect_error) {
+ die("Connection to mysql database failed: " . $mysql->connect_error);
+ }
+
+ $result = $mysql -> query("SELECT * FROM `binary_packages`");
+ if ($result -> num_rows > 0) {
+ while($row = $result->fetch_assoc()) {
+ foreach ($row as $key => $val) {
+ print $key .": ".$val." - ";
+ }
+ print "<br>\n";
+ }
+ }
+
+ print 'OK';
+
+?>