H1 Failed connecting to postgres database ?php echo $database? / H1 ?php exit; endif; $qu = pg_query ($db_conn, "SELECT * FROM verlag ORDER BY autor"); $row = 0; / / postgres needs a row counter other dbs might not while ($data = pg_fetch_object ($qu, $row)) {echo $data - autor. "("; echo $data - jahr ."):"; echo $data - titel. "BR"; $row++;}?
H1 Connexion impossible à la base postgres ?php echo $database / H1 ?php exit; endif; $qu = pg_exec($db_conn, "SELECT * FROM verlag ORDER BY autor"); $row = 0; / / postgres réclame un compteur de ligne, d'autres bases ne le font pas. while ($data = pg_fetch_object($qu, $row)): echo $data - autor. "("; echo $data - jahr ."):"; echo $data - titel. "BR"; $row++; endwhile;?