<?php
require_once 'DB.php';
$db = DB::connect('odbc://user:pw@host/mydb');
$stmt = $db->prepare('SELECT * FROM comments');
$result = $db->execute($stmt);
while($row = $db->fetchrow($result)) {
while($row as $field => $value ) {
echo "$field: $value<br>\n";
}
}
$db->disconnect();
?>