pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adam Lang <aalang@rutgersinsurance.com>
To: pgsql-php@postgresql.org
Subject: Re: listing databases
Date: Wed, 1 Nov 2000 09:21:13 -0500
Message-ID: <00b001c0440e$fd1f6d20$330a0a0a@6014cwpza006> (raw)
References: <3A0030A1.81831A88@asa.de>

I don't know of a way.  To connect to postgresql I think it is mandatory to
include the dbname.  Even if you didn't, there is no function that lists the
DBs on the system.

Unfortunately that is something MySQL in PHP has.  You can connect to jsut
the Server, and it has a function called mysql_list_dbs which returns a
result set of databases on the server.

Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
----- Original Message -----
From: "magnus" <reduct@asa.de>
To: <pgsql-php@postgresql.org>
Sent: Wednesday, November 01, 2000 10:02 AM
Subject: [PHP] listing databases


> Hello,
> Can anyone tell me how to list (1.) databases and (2.) tables in a
> database using php?
> Thanks,
> Magnus Lawrie




view thread (12+ messages)  latest in thread

Message-ID: <00b001c0440e$fd1f6d20$330a0a0a@6014cwpza006>
Permalink:  ../00b001c0440e$fd1f6d20$330a0a0a@6014cwpza006/
Also on:    postgresql.org/message-id/00b001c0440e$fd1f6d20$330a0a0a@6014cwpza006

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: aalang@rutgersinsurance.com
  Subject: Re: listing databases
  In-Reply-To: <00b001c0440e$fd1f6d20$330a0a0a@6014cwpza006>
  References: <3A0030A1.81831A88@asa.de> <00b001c0440e$fd1f6d20$330a0a0a@6014cwpza006>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox