From: Thorsten Haude <postgresql@thorstenhau.de>
To: PostgreSQL PHP ML <pgsql-php@postgresql.org>
Subject: Re: Unknown Host in pg_connect()
Date: Sun, 24 Mar 2002 16:34:54 +0100
Message-ID: <20020324153454.GB3485@eumel.yoo.net> (raw)
In-Reply-To: <002a01c1d345$929c3740$c80ba8c0@sabex.com>
References: <20020324124155.GH981@eumel.yoo.net>
<002a01c1d345$929c3740$c80ba8c0@sabex.com>
Hi,
>> I'm trying to connect to PostgreSQL using pg_connect:
>> $dbh = pg_connect("host=localhost, dbname=inventory, user=inventoryUser,
>password=secret");
It's a simple syntax error, the commas are not required.
Thorsten
--
The privacy of correspondence, posts and telecommunications shall be inviolable.
- Grundgesetz, Article 10, Sec. 1
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: postgresql@thorstenhau.de
Subject: Re: Unknown Host in pg_connect()
In-Reply-To: <20020324153454.GB3485@eumel.yoo.net>
References: <20020324124155.GH981@eumel.yoo.net> <002a01c1d345$929c3740$c80ba8c0@sabex.com> <20020324153454.GB3485@eumel.yoo.net>
* 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