pauld wrote:
# now connect and get a database handle
my $dbh = DBI->connect($dsn, $user, $pass) or die "Cant connect to the
DB: $DBI::errstr\n";
my $sql="SELECT value FROM res_prior";
my $sth = $dbh->prepare($sql) or die "cant prepare";
$sth->execute($sql) or die "cant execute";

    $sth->execute() or die $sth->errstr;

Please read up on the execute() method in "perldoc DBI".

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to