From: | Helgi Örn Helgason <sacredeagle(at)gmail(dot)com> |
---|---|
To: | Mark Kelly <pgsql(at)wastedtimes(dot)net> |
Cc: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: MySQL --> PostgreSQL with PHP |
Date: | 2010-10-09 08:56:33 |
Message-ID: | AANLkTimbtBtTkiqQLXjVh76oer6Y1DghLu0Ab=HbhUT=@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
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(at)wastedtimes(dot)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?
From | Date | Subject | |
---|---|---|---|
Next Message | Helgi Örn Helgason | 2010-10-09 09:09:04 | Re: MySQL --> PostgreSQL with PHP |
Previous Message | e-letter | 2010-10-09 07:41:14 | permissions failure to copy csv data |