\n"; } // Performing SQL query $query = 'SELECT * FROM wbuser'; $result = pg_query($dbc, $query); if (!$result) { echo pg_last_error() . "
\n"; } // Printing results in HTML echo "\n"; while ($line = pg_fetch_array($result, null, PGSQL_ASSOC)) { echo "\t\n"; foreach ($line as $col_value) { echo "\t\t\n"; } echo "\t\n"; } echo "
$col_value
\n"; // Free resultset pg_free_result($result); // Closing connection pg_close($dbc); } } $t = new Test(); $t->first(); ?>