Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-17 10:13:28 +0200
committerErich Eckner <git@eckner.net>2018-04-17 10:13:28 +0200
commit7ce27678ecf5f4115e73d8290941c83f39520490 (patch)
tree15287bdcbe18ce36354cbe3756a8e4d11e1e7176 /packages
parent5c5ed42237757efcf698a36c37cf9bd0630232c3 (diff)
packages/index.php: small step towards lib/mysql.php
Diffstat (limited to 'packages')
-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`"
))