Kapcsolati Informaciok"; echo 'Database name: ' . pg_dbname($db) . "
"; echo 'Hostname: ' . pg_host($db) . "
"; echo 'Port: ' . pg_port($db) . "
"; echo '

Select

'; $kerdes='select * from y'; $eredmeny=pg_query($db,$kerdes); if (!$eredmeny) {print 'hibas lekerdezes.';echo pg_last_error($db).'
';echo pg_errormessage($db).'
';goto vege;} $sor=pg_num_rows($eredmeny); $oszlop=pg_num_fields($eredmeny); echo "Sorok szama: " .$sor . "
"; echo "Oszlopok szama: " . $oszlop . "

"; print '
'; for ($i=0;$i<$oszlop;$i++) { print pg_field_name($eredmeny,$i).'
'; print '
'; } print ''; print '
'; vege: pg_close($db); ?>