index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
-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`" )) |