diff options
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'; + +?> |