#!/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"); while($row = $result->fetch(PDO::FETCH_ASSOC)){ echo $row['active'] . "\t" . $row['created'] . "\t" . $row['modified'] . "\t" . $row['yk_publicname'] . "\t" . $row['yk_counter'] . "\t" . $row['yk_use'] . "\t" . $row['yk_low'] . "\t" . $row['yk_high'] . "\t" . $row['nonce'] . "\t" . $row['notes'] . "\n"; } $result=null; $db=null; ?>