index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-04-17 10:13:28 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-04-17 10:13:28 +0200 |
commit | 7ce27678ecf5f4115e73d8290941c83f39520490 (patch) | |
tree | 15287bdcbe18ce36354cbe3756a8e4d11e1e7176 | |
parent | 5c5ed42237757efcf698a36c37cf9bd0630232c3 (diff) |
-rw-r--r-- | packages/index.php | 10 |
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`" )) |