1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-01-20 10:52:15 +01:00

Use order by to know order of yubikeys

This commit is contained in:
Olov Danielson 2010-01-25 17:00:42 +00:00
parent aafd8f80b8
commit 4551dff93d

View File

@ -21,7 +21,7 @@ if (!$db->connect()) {
exit(1);
}
$result=$db->customQuery("SELECT active, created, modified, yk_publicname, yk_counter, yk_use, yk_low, yk_high, nonce, notes FROM yubikeys");
$result=$db->customQuery("SELECT active, created, modified, yk_publicname, yk_counter, yk_use, yk_low, yk_high, nonce, notes FROM yubikeys ORDER BY yk_publicname");
while($row = $result->fetch(PDO::FETCH_ASSOC)){
echo $row['active'] .
"\t" . $row['created'] .