in reply to Re: connect database
in thread connect database

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?

Replies are listed 'Best First'.
Re^3: connect database
by ikegami (Patriarch) on Jan 08, 2009 at 13:09 UTC

    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