summaryrefslogtreecommitdiff
path: root/packages/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'packages/index.php')
-rw-r--r--packages/index.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/index.php b/packages/index.php
index 304c70c..79c47ea 100644
--- a/packages/index.php
+++ b/packages/index.php
@@ -1,3 +1,8 @@
+<?php
+
+ include "lib/mysql.php";
+
+?>
<!DOCTYPE html>
<?php
@@ -47,11 +52,6 @@
Arch</label><select multiple="multiple" id="id_arch" name="arch">
<?php
-$mysql = new mysqli("localhost", "webserver", "empty", "buildmaster");
-if ($mysql->connect_error) {
- die("Connection failed: " . $mysql->connect_error);
-}
-
if (! $result = $mysql -> query(
"SELECT `name` FROM `architectures` ORDER BY `name`"
))