giobis has asked for the wisdom of the Perl Monks concerning the following question:
My Perl Code is :DBD::SQLite::db prepare failed: file is encrypted or is not a database +(26) at dbdimp.c line 268 at prova.pl line 3. Can't call method "execute" on an undefined value at prova.pl line 4.
Can You help me ? Thanks a lotuse DBI; my $dbh = DBI->connect("DBI:SQLite:dbname=prova.db","",""); $sth = $dbh->prepare("select * from joe1test"); $sth->execute; $numRows = $sth->rows; print "Righe : $numRows\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with SQLite connection
by davido (Cardinal) on Sep 07, 2005 at 15:26 UTC | |
by giobis (Acolyte) on Sep 08, 2005 at 06:26 UTC | |
|
Re: Problem with SQLite connection
by jZed (Prior) on Sep 07, 2005 at 15:28 UTC | |
|
Re: Problem with SQLite connection
by ikegami (Patriarch) on Sep 07, 2005 at 15:28 UTC | |
|
Re: Problem with SQLite connection
by sh1tn (Priest) on Sep 07, 2005 at 15:57 UTC | |
|
Re: Problem with SQLite connection
by giobis (Acolyte) on Sep 08, 2005 at 06:31 UTC |