in reply to connect database

Update: Added last two bullets.

Replies are listed 'Best First'.
Re^2: connect database
by Bass-Fighter (Beadle) on Jan 08, 2009 at 13:06 UTC
    this is only the piece of the error, there is more, so I use strict.

    I now changed it into this:

    #!usr/bin/perl use 5.6.1; use strict; use warnings; use DBI; my$dbh = DBI->connect("DBI:Pg:dbname=five; port=5432", 'postgres', '', +{ RaiseError => 1, AutoCommit => 0 }) or die "kon de database niet openen!";

    and now I get this:
    DBD::Pg::db do failed: ERROR: parser: parse error at or near "voor" at character 94
    DBD::Pg::db do failed: ERROR: parser: parse error at or near "voor" at character 94

    and what is the meaning of that?

      DBD::Pg::dbdo failed: ERROR: parser: parse error at or near "voor" at character 94

      So it worked, cause you made it to some $dbh->do call further down.

        ohw... yeah I see now, I think I can get further now, Thanx