';
echo '
';
for ($i = 0; $i < pg_num_fields($res); $i++) {
echo ''.pg_field_name ($res, $i).' | ';
}
echo '
';
while ($row = pg_fetch_assoc($res)) {
echo '';
for ($i = 0; $i < pg_num_fields($res); $i++) {
echo ''.$row[pg_field_name ($res, $i)].' | ';
}
echo '
';
}
echo '';
}
?>
\n";
echo "\n";
echo "\n";
}
?>