#!/usr/bin/php connect()) { $myLog->log(LOG_WARNING, "Could not connect to database"); exit(1); } $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 = $db->fetchArray($result)){ echo (int)$row['active'] . "," . $row['created'] . "," . $row['modified'] . "," . $row['yk_publicname'] . "," . $row['yk_counter'] . "," . $row['yk_use'] . "," . $row['yk_low'] . "," . $row['yk_high'] . "," . $row['nonce'] . "," . $row['notes'] . "\n"; } $db->closeCursor($result); $db->disconnect(); $result=null; $db=null;