hanno commited on 2011-09-13 12:19:02
Zeige 1 geänderte Dateien mit 2 Einfügungen und 2 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@2052 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -3,7 +3,7 @@ |
3 | 3 |
function get_mysql_accounts($UID) |
4 | 4 |
{ |
5 | 5 |
$UID = (int) $UID; |
6 |
- $result = db_query("SELECT username, description, created FROM misc.mysql_accounts WHERE useraccount=$UID"); |
|
6 |
+ $result = db_query("SELECT username, description, created FROM misc.mysql_accounts WHERE useraccount=$UID ORDER BY username"); |
|
7 | 7 |
if (mysql_num_rows($result) == 0) |
8 | 8 |
return array(); |
9 | 9 |
$list = array(); |
... | ... |
@@ -17,7 +17,7 @@ function get_mysql_accounts($UID) |
17 | 17 |
function get_mysql_databases($UID) |
18 | 18 |
{ |
19 | 19 |
$UID = (int) $UID; |
20 |
- $result = db_query("SELECT id, name, description, created FROM misc.mysql_database WHERE useraccount=$UID"); |
|
20 |
+ $result = db_query("SELECT id, name, description, created FROM misc.mysql_database WHERE useraccount=$UID ORDER BY name"); |
|
21 | 21 |
if (mysql_num_rows($result) == 0) |
22 | 22 |
return array(); |
23 | 23 |
$list = array(); |
24 | 24 |