diff options
author | Erich Eckner <git@eckner.net> | 2018-04-12 10:28:31 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-04-12 10:28:31 +0200 |
commit | 5036d7a7172055a24ae9fa493e37998b725966eb (patch) | |
tree | 82956ba699664612f283109c104ae4533c5fc080 /buildmaster/packages.php | |
parent | 4b2dcc3b53fafcab1f1912990fd5468795108a18 (diff) | |
download | archweb32-5036d7a7172055a24ae9fa493e37998b725966eb.tar.xz |
move buildmaster stuff to separate directory
Diffstat (limited to 'buildmaster/packages.php')
-rw-r--r-- | buildmaster/packages.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/buildmaster/packages.php b/buildmaster/packages.php new file mode 100644 index 0000000..b7c0196 --- /dev/null +++ b/buildmaster/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'; + +?> |