index : website | |
Archlinux32 website - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | packages/index.php | 16 |
diff --git a/packages/index.php b/packages/index.php index 79c47ea..e9a78c1 100644 --- a/packages/index.php +++ b/packages/index.php @@ -2,17 +2,16 @@ include "lib/mysql.php"; -?> -<!DOCTYPE html> - -<?php - foreach (array("bugs","sort") as $expected_param) if (! isset($_GET[$expected_param])) $_GET[$expected_param] = ""; -?> + $result = mysql_run_query( + "SELECT `name` FROM `architectures` ORDER BY `name`" + ); +?> +<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> @@ -52,11 +51,6 @@ Arch</label><select multiple="multiple" id="id_arch" name="arch"> <?php -if (! $result = $mysql -> query( - "SELECT `name` FROM `architectures` ORDER BY `name`" - )) - die ($mysql -> error); - while ($row = $result -> fetch_assoc()) { $archs[$row["name"]] = $row["name"]; print "<option value=\"" . $row["name"] . "\""; |