#!/usr/bin/php connect()) { $myLog->log(LOG_WARNING, "Could not connect to database"); exit(1); } $result = $db->customQuery("select id, active, created, secret, email, notes, otp from clients order by id"); while($row = $result->fetch(PDO::FETCH_ASSOC)){ echo $row['id'] . "\t" . $row['active'] . "\t" . $row['created'] . "\t" . $row['secret'] . "\t" . $row['email'] . "\t" . $row['notes'] . "\t" . $row['otp'] . "\n"; } $result=null; $db=null; ?>