index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | web-scripts/packages.php | 20 |
diff --git a/web-scripts/packages.php b/web-scripts/packages.php new file mode 100644 index 0000000..5f04979 --- /dev/null +++ b/web-scripts/packages.php @@ -0,0 +1,20 @@ +<?php + +$mysql = new mysqli("localhost", "webserver", "empty"); +if ($mysql->connect_error) { + die("Connection failed: " . $mysql->connect_error); +} + +$result = $mysql -> query("SELECT * FROM buildmaster.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'; + +?> |