diff --git a/adminer/select.inc.php b/adminer/select.inc.php index c429c34d..9a0a781f 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -273,11 +273,14 @@ if (!$columns) { if ($name != "") { $rank++; $names[$key] = $name; + $column = idf_escape($key); $href = remove_from_uri('(order|desc)[^=]*|page') . '&order%5B0%5D=' . urlencode($key); + $desc = "&desc%5B0%5D=1"; echo ''; - echo '' . (!$select || $val ? apply_sql_function($val["fun"], $name) : h(current($select))) . ""; //! columns looking like functions + echo ''; // $order[0] == $key - COUNT(*) + echo (!$select || $val ? apply_sql_function($val["fun"], $name) : h(current($select))) . ""; //! columns looking like functions echo "