Thank's for your reply Mark, everything looks very good and I will
take a look at the links.
On 9 October 2010 00:47, Mark Kelly <pgsql@wastedtimes.net> wrote:
[snip]
> //============ START CODE ===================
> // Connect to the PostgreSQL server
> // Build a string to specify the connection parameters, NOT pass them as args.
> $connectionString = "host=$hostName dbname=$databaseName ".
> "user=$username password=$password";
> if (!$connection = pg_connect($connectionString)) {
> die("Cannot connect: ".pg_last_error());
> }
>
My problem this time is that the lines above consistently gives me
"Cannot connect:" and nothing else. I am quite sure I've managed to
exclude everything else from causing any errors. Could there be some
knot in these lines?