1 <?php require("common.php");
3 $c = array("mark", "options", "test", "result", "compilation");
5 function clause_for($c) {
8 foreach($c as $fake => $x) {
17 $rc = $rc . $x . " = '" . $v . "'";
23 $gb = $_GET['groupby'];
24 $limit = $_GET['limit'];
26 $what = "mark, SUM(time) as sum_time, SUM(timeuser) as sum_timeuser";
28 $what = "mark, time, timeuser, compilation, test, result, options";
29 $clause = clause_for($c);
31 $query = "select $what from bench where " . clause_for($c);
33 $query = "select $what from bench ";
35 $query = $query. "group by $gb";
39 $query = $query. " LIMIT 0,$limit";
44 header("Location: showquery.php?query=".urlencode("Custom:@@@" . $query));