pg_last_error([ resource $connection ] ): string
$requete = 'select id, nom_region from region'; $ptrQuery = pg_query($ptrDB,$requete); if (!$ptrQuery) { echo pg_last_error($ptrDB); }
ERROR: column "id" does not exist LINE 1: select id, nom_region from region ^