summaryrefslogtreecommitdiff
path: root/web-scripts/packages.php
blob: 5f049794770949f2d4d8d8f82a8f7ad287b9ebb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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';

?>