summaryrefslogtreecommitdiff
path: root/buildmaster/packages.php
blob: b7c0196700b81520ea9be7bb93daed6a5c1c51ad (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", "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';

?>