pg_fetch_all( resource $result ): array
$requete = 'select * from region'; $ptrQuery = pg_query($ptrDB,$requete); if ($ptrQuery) { $resultat = pg_fetch_all($ptrQuery); foreach ($resultat as $ligne) { foreach ($ligne as $colonne) echo $colonne.','; echo "<br />\n"; } }